Skip to content Skip to sidebar Skip to footer

How To Excute Asynctask Inside Onlocationchanged() Method In Android

I have class that extends AsyncTask class and I create instance of this class of this AsyncTask class uses data comes from GPS driver from the method public void onLocationChang

Solution 1:

public void onLocationChanged(Location location) {

        new yourAsyncTaksk(location).execute();

}

make a constructor for your asyncTask , with Location object as argument.


Post a Comment for "How To Excute Asynctask Inside Onlocationchanged() Method In Android"