
smartandroidians.blogspot.com
AndroidiansTutorials for Android - Share and Enjoy. Saturday, March 21, 2015. How to use callback or interface - Pass data from Asynctask to activity. To get data from a separate thread to the the main UI thread which will be in different stand alone class can get the result through callbacks. Consider AsyncTask in a separate stand alone class and we need to get data from AsyncTask to the Activity, we can get it through callbacks. The steps are as,. 1 Define an interface in AsyncTask. Posted by Nithin M Warrier.
http://smartandroidians.blogspot.com/