Category Archives: Uncategorized

How to do JSON Parsing in Android?

JSON stands for JavaScript Object Notation.It is an independent data exchange format and is the best alternative for XML. All the responses from server are json encoded (if encoded i n PHP file). In order to parse them, following are … Continue reading

Posted in Uncategorized | Leave a comment

How to Communicate With Web Server in Android?

In order to store the data filled by an android application user on the Web Server, you have to¬† follow the following steps: Declare Internet permissions in the manifest by adding the following line to AndroidManifest.xml. <uses-permission android:name=”android.permission.INTERNET”/> Create your … Continue reading

Posted in Uncategorized | 2 Comments

How to delete SQLite Database from adb command line of Android?

1) Change to directory, platform-tools. In my case, its cd Music/adt-bundle-linux-x86-20140321/sdk/platform-tools/ List all items in it. ls It will show you adb executable file also.Give the following command. adb shell Your command prompt will change to root@generic:/ # Change to … Continue reading

Posted in Uncategorized | Leave a comment

How to create simple (unbound) Service in Android?

  Services in Android System 1) Faceless components: A service is a component which runs in the background without direct interaction with the user. As the service has no user interface, it is not bound to the lifecycle of an … Continue reading

Posted in Uncategorized | Leave a comment

How to create Notifications in Android?

Notifications: A notification is a message you can display to the user outside of your application’s normal UI. When you tell the system to issue a notification, it first appears as an icon in the notification area. To see the … Continue reading

Posted in Uncategorized | Leave a comment

How to use AsyncTask in Android?

Android implements single thread model and whenever an android application is launched, a thread is created.¬†Assuming we are doing network operation on a button click in our application. On button click a request would be made to the server and … Continue reading

Posted in Uncategorized | Leave a comment

How to pass data from one activity to another in Android?

Lets suppose you have one EditText and one button in one activity and one text view in another activity. On clicking the button, text in Edit Text of activity one should become lable/ text of text view in another activity. … Continue reading

Posted in Uncategorized | Leave a comment