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

Notification For Android

Notification are used for Background task interaction with user. When you want to download , upload data to/from server . And you want to do other task in android phone then use notification manager helper class to provided time to time update for user to get the process state. We create you helper class hope … Read more

SQlLite For Android

Here we add Sqlite Helper class. Which you can used an any project for permanently storage of necessary data. Customize it on base of your requirment. package com.example.smartftpclient; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class SqliteDataBase { private static final String DATABASE_NAME = “data”; private static final String … Read more

GLSurfaceView in android

It used for 2D and 3D Graphic animation , gaming and all those app which required 2D or 3D Graphic Here we Simply Introduce skeleton of GLSurfaceView. Create New Project The Activity Class Look like the following public class GLActivity extends Activity  {    @Override    protected void onCreate(Bundle savedInstanceState) {                 super.onCreate(savedInstanceState); … Read more

How to restore Deleted file in Eclipse

When you develop App and unfortunately some file are deleted from you and you want to recover at the used the following procedure To to Navigation Menu Select Open Resources Then Enter file or Project name which you want to restore. Click on Open Button  Now you File/Project are opened for you . Let Enjoy………….

Android Manifest File

It is the main Configuration file of Android Project. Is automatically created with every android project. In this file we configure different type of appliction setting. First We use element. In this tag we take permission of others appliction are services which we want to use in our appliction. if we want to use SMS … Read more

How to store data in share preferences in android

Share Preferences are used for storing some data, like font size, background color are array data. Its also store float , integer, string and Boolean values. Following are the example of Share Preference read and writing. private SharedPreferences myPrefs; private SharedPreferences.Editor editor; /////////////////////////// object initialization   myPrefs = this.getSharedPreferences(“myPrefs”, MODE_WORLD_READABLE);         editor=myPrefs.edit();  ////////////// store data in … Read more

Thread in Android

By default every android application is separate thread which called main thread. If any one want to run any work which take more than ten second and run at in the main thread . then your application must to terminated unexpectedly . To avoid this problem you must create second thread and do the long … Read more