Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to get GCM registration token in Android

GCM(Google Cloud Messaging) registration token is a kind of id given by the GCM connection server to user/client that allow user to receive messages. To get registration token first we have to generate a unique number, it can be created while con...

Accessing another apps by listing installed applicatoins in android

This tutorial is for getting the list of installed apps in your android devices. The information we reterive with the currently installed apps in a device using  PackageManager class. We will get the instance of this class by calling getPack...

How to use AsyncTask in android?

In the below example I have clearly described how to use  AsyncTask. First of all you should know what is AsyncTask ?   AsyncTask is an abstract class provided by android which helps us to use the UI thread properly. AsyncTask class...

What is main and background thread and how to touch ui from background thread ?

Multithreading is  a meachanism where a one user can access more than one process or you can say that an operating system can perform more than one operations simultaneously. In Android we have two types of thread that are Main thread and...

Relationship between Activity lifecycle and asynctask

An Asynctask doesn't depend on Activity life-cycle that contains it. Like if we start an AsyncTask inside an Activity and then we rotates the device, the Activity will be destroyed at that point but the AsyncTask will remain same or not die until...

Run multiple async task simultaneously

Do you know that android version higher than gingerbread doesn't support multiple async task to run parellely but gingerbread ans lower version supports this functionality. So if you want to run multiple task at a time you have to check api ve...

How to show progress in a ProgressDialog while downloading

Progress dialog in android to show progress indicator/updates while downloading a file or when waiting to load a file while playing a game. Progress dialog have various features like:- setMessage() to display message Example: Loading... (or) P...

Steps to download a file in android using Asynctask

Five Steps for downloading a file using AsyncTask in android Declare the reference of ProgressDialog class in your Activity globally. Ex:- ProgressDialog mProgressDialog; Instantiate the above reference in onCreate() method of activity...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: