gml.check.tool
Newbie
I am creating a prototype for my initial thesis.
First, my application used Asynctask to do the background to do data retrieval from online and loading the retrieved data to my local DB.
But I decided to change it using IntentService.
Now, my new class derived from IntentService is not a nested class inside my Activity. Thus, I can't Activity.finish() which I need to call if there is something wrong inside the IntentService.
Is it possible to call the finish() of the calling Activity inside the IntentService?
I am thinking of using the argument intent but don't know on how to do it.
Any guidance on the right direction is appreciated.
Eros
Japan
First, my application used Asynctask to do the background to do data retrieval from online and loading the retrieved data to my local DB.
But I decided to change it using IntentService.
Now, my new class derived from IntentService is not a nested class inside my Activity. Thus, I can't Activity.finish() which I need to call if there is something wrong inside the IntentService.
Is it possible to call the finish() of the calling Activity inside the IntentService?
I am thinking of using the argument intent but don't know on how to do it.
Code:
protected void onHandleIntent(Intent intent) {...}
Any guidance on the right direction is appreciated.
Eros
Japan