Run php code online for android push notification

Run php code online for android push notification To Test push notification code online run below code with replace of $deviceTocken and $GOOGLE_API_KEY To create API_KEY click here Then copy code from here to http://phpfiddle.org and past code in site and press run button.
Continue reading »

Android Dialog Ready for use For Utility with custom message and text for buttons

Android Dialog Ready for use For Utility with Custom message and text for Yes, No buttons. Create Class ConfirmCustomDialog package com.kp.core; import com.kp.dialogs.IDialogCallback; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; public class ConfirmCustomDialog extends DialogFragment { CharSequence title,message; String yesText=””; String noText=””;...
Continue reading »

Android Check internet connectivity

Android Check internet connectivity. Below android code to check if mobile is connected to internet or not ? public static boolean isConnectingToInternet(Context context) { try { ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivity != null) { NetworkInfo[] info = connectivity.getAllNetworkInfo(); if (info != null) for...
Continue reading »