Posts

Google Chrome short keys for Windows and Mac

Image

ExpandableRecycleView_In_Expand_Only_One_Item

private ExpandableGroup mLastExpandedGroup ; @override public void onGroupExpanded(ExpandableGroup group) { if (mLastExpandedGroup != null && !mLastExpandedGroup.equals(group) && adapter.isGroupExpanded(mLastExpandedGroup)) { adapter.toggleGroup(mLastExpandedGroup); } mLastExpandedGroup = group; }

DummyIdFor Admob Implementation

Dummy Id For Admob Implementation Banner : - ca-app-pub-3940256099942544/6300978111 Interstitial : - ca-app-pub-3940256099942544/1033173712 Rewarded Video :- ca-app-pub-3940256099942544/5224354917 Native Advanced :- ca-app-pub-3940256099942544/2247696110 Native Express Small/Large : - ca-app-pub-3940256099942544/2793859312 ca-app-pub-3940256099942544/2177258514

Currency name with Country name

Code Currency AED United Arab Emirates Dirham AFN Afghan Afghani ALL Albanian Lek AMD Armenian Dram ANG Netherlands Antillean Guilder AOA Angolan Kwanza ARS Argentine Peso AUD Australian Dollar AWG Aruban Florin AZN Azerbaijani Manat BAM Bosnia-Herzegovina Convertible Mark BBD Barbadian Dollar BDT Bangladeshi Taka BGN Bulgarian Lev BHD Bahraini Dinar BIF Burundian Franc BMD Bermudan Dollar BND Brunei Dollar BOB Bolivian Boliviano BRL Brazilian Real BSD Bahamian Dollar BTC Bitcoin BTN Bhutanese Ngultrum BWP Botswanan Pula BYN Belarusian Ruble BYR Belarusian Ruble BZD Belize Dollar CAD Canadian Dollar CDF Congolese Franc

Blur image in android using code

add in Build.gradle file : - defaultConfig {         renderscriptTargetApi 18         renderscriptSupportModeEnabled true     } Add in Activity : - ImageView imageView = (ImageView) findViewById(R.id.imageView); Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.background);         Bitmap blurredBitmap = blur(bitmap);         imageView.setImageBitmap(blurredBitmap);  public Bitmap blur(Bitmap image) {         if (null == image)             return null;         Bitmap outputBitmap = Bitmap.createBitmap(image);         final RenderScript renderScript = RenderScript.create(this);         Allocation tmpIn = Allocation.createFromBitmap(renderScript, image);         Allocation tmpOut = Allocation.createFromBitmap(renderScript, outputBitmap);         //Intrinsic Gausian blur filter         ScriptIntrinsicBlur theIntrinsic = null;         if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {          

Copy and sort Arraylist in android

Copy Arraylist :- 1) List<Integer> newList = new ArrayList<>(oldList); 2) arraylist2Object.addAll(arraylist1Object); 3) Collections.copy(arrayList2,arrayList1); Sort ArrayList :- 1)Collections.sort(arraylist);

Screen Size in Android

drawable-ldpi        //240x320 drawable-mdpi        //320x480 drawable-hdpi        //480x800 drawable-xhdpi       //720x1280 drawable-xxhdpi      //1080X1920 drawable-xxxhdpi     //1440X2560