Posts

Showing posts from September, 2018

How to Upload CSV file in phpMyAdmin of cPanel ?

How to upload CSV file in PHP, my admin? steps : - 1) open excel file. 2) save as UnicodeText(.txt) format 3) open .txt file and change delimiter (     )tab to any you want. ->we use ||. Like, pipe(||),comma(,,),etc. "Note which delimiter you apply that can't be the value of the any field." 4) the first column is a name of the columns 5)in server phpmyadmin open import tab. File to import: 6)browse that .csv file -> Character set of the file:utf-16 ->Skip this number of queries (for SQL) starting from the first one:1(if u have first columns as a field name) otherwise 0. Format: 7) CSV ->select if u want to update same data ->Columns separated with: value which u set as delemeter.(in our case ||) ->Columns enclosed with:" ->Columns escaped with:" ->Lines terminated with:auto Column names: id,sub_category_name,sub_category_details,catId,typeId(our field names)

what thing is required to upload app on play store ?

1)Need Play Console Account : - 2)App Name 3)Short Description , Long Description 4)App Logo 512 x 512 5)App Banner 1024 w x 500 h 6)App Screen Shots 6-8 7)App Category 8)Website(optional) 9)Privacy Policy(optional)(Url) 10)Apk. 11)App contain any purchase(means app ma koi item purchase nu 6?).

How to send firebase push notification

POST-URL : - https://fcm.googleapis.com/fcm/send header : - Content-Type: application/json Authorization:key= AIzaSy*************************3SY(Server key from Google Play Console ) //Send To Single Device : - body : - {   "data": {     "image": "https://lh3.googleusercontent.com/-joANfM24rjU/AAAAAAAAAAI/AAAAAAAAACI/wTOiaSlKeDw/s60-p-rw-no-il/photo.jpg",     "message": "Hello,Push Notification",     "AnotherActivity": "True"   },   "to": "dKq******kM:APA91bFU9Y-NCKguMBOv_qvrAv***************************************************************SLmUwNl1yCRwTrQsRVPNAhh7O3UpzgWKQnKI9GIcDRnUM8X" } //Send To All Devices : - In Android Studio :- FirebaseMessaging.getInstance().subscribeToTopic("all"); body :- { "data": {     "image": "https://lh3.googleusercontent.com/-joANfM24rjU/AAAAAAAAAAI/AAAAAAAAACI/wTOiaSlKeDw/s60-p-rw-no-il/photo.jpg",  

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);