I\'m trying to use a service to make a regular call to my API. The asynchronous class I use to make external HTTP calls returns information to a handler which is passed in.
I have an Activity that will query a RESTful API every x seconds (polls using a handler).The results of the GET are used to update a ListView.This is done using an AsyncTask.
What is best way for services error handling? For example, I have service which get some information from Internt, I want show to user some dialog with message when connectivity is bad. Or if I have s
Android: public class LocationService extends Service { @Override public void onStart(Intent intent, int startId) {
I\'ve a simple service that several of my activiti开发者_运维问答es need to access. The standard approach seems to be:
开发者_如何学CAs it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely sol
My application has an IntentService which runs periodically to download data from a remote server. The download task is run inside an
I have a Service that creates AsyncTasks for downloading files. In activities, we create Runnables or Threads that we pass to Activity.runOnUiThread(). I can\'t access that method from a service, so h
1/I don\'t want to notify user if this one is already running my app in foreground, is it possible before create nofification to check if my app is not in front ?
I have a service that starts and binds correctly when it\'s first called, but successive bindings to that same service fail when called by other activities.