views:

48

answers:

1

I have the following question:

I start my activity and i call bindService in order to start a service which in background downloads data from an API. When it finish, it calls stopSelf().

But if i want to call again bindService in my Activity in order to download other data, nothing happens.

Any idea?

A: 

If it's just a one off download that you're doing, wouldn't using AsyncTask be more appropriate?

http://developer.android.com/reference/android/os/AsyncTask.html

jebcor