3 Awesome Security Plugins for WordPress

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc imperdiet rhoncus arcu non aliquet. Sed tempor mauris a purus porttitor, ac convallis arcu venenatis. Donec lorem erat, ornare in augue at, pharetra cursus mauris. Cras commodo orci vel scelerisque convallis. Fusce sollicitudin feugiat placerat. Aenean magna massa, vehicula at efficitur ac, vestibulum non felis. Aliquam … Read more

How to Stop AsyncTask in Android

AsyncTask is used for Threading Appliction. In most situation we want to stop in when its in running state. For example when we downloading or uploading file in the middle of process we want to stop the use the following code. MyAsyncTask objUploader; if (objUploader != null && objUploader.getStatus() != AsyncTask.Status.FINISHED) objUploader.cancel(true); Use the following … Read more

Toggle Android Airplan mode

This code show to Toggle Airplane mode of mobile public void airplaneModeOn( ) {         try {             boolean isEnabled =  Settings.System.getInt(getContentResolver(),Settings.System.AIRPLANE_MODE_ON, 0) == 1;             Settings.System.putInt(getContentResolver(),Settings.System.AIRPLANE_MODE_ON, isEnabled    ? 0 : 1);             Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);             intent.putExtra(“state”, !isEnabled);             sendBroadcast(intent);             Toast.makeText(this, “Mode is “+!isEnabled  … Read more

How to set Button Enable and Disable using Android

Add button to layout, then add the following code java file.        Button btnCalcualte=(Button) findViewById(R.id.button1);              // to enable button                           btnCalcualte.setEnabled(true);                // to disable button                       btnCalcualte.setEnabled(false);      

Alert Dialog When User Press Back Button

Override  the following method  of Activity to add Key event into Android Application. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK)) { AlertDialog.Builder alertbox = new AlertDialog.Builder(HomeActivity.this); alertbox.setIcon(R.drawable.info_icon); alertbox.setTitle(“You Want To Exit Programm”); alertbox.setPositiveButton(“Yes”, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) {    // finish used for destroyed activity … Read more

SmS Reading in Android Programmatically

An Android you can read Sms programmatically. When you able to read Sms Programmatically then you can do more advance task by this operation. Like I read sms and Change profile of the phone and read contact by name and the result of contact search are send back to my phone from where we search … Read more

Android Age Calculator

In this application we calculate total year, months and day of our age. You simply enter Data of Birth to calculate it. Let start the fun First we Create AgeCalcualtion class where we add all calculation method to calculate Year, Months and Day from date of Birth public class AgeCalculation { private int startYear; private … Read more

Input Dialoge for android

When you want to user give quick input then used input dialog in android . It design from dialog to change its type to input. private void inputDialog() { AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle(“Please Enter File Name”); final EditText input = new EditText(this); alert.setView(input); alert.setPositiveButton(“Ok”, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) … Read more

Android Single Item Selection Dialog

Dialog are used for User Some piece of information for user that what you want to do, or user enter any wrong operation on system then dialog are displayed for output that you do any exceptional command . We used it for Selecting single choice and multiple option. We add single button when user click … Read more

Create Alert Dialog in Android

Alert Dialog is used for Show information to user .Its also used for give user action output that what are performed . Following are the example of Simple Dialog. private void SimpleAlertDialog() { Builder builder = new AlertDialog.Builder(this); builder.setTitle(“My Alert Dialog”); builder.setMessage(“This is example of Simple Alert Dialog”); builder.setPositiveButton(“OK “, new DialogInterface.OnClickListener() { @Override public … Read more