android-service
One SQLite DB and two remote services: android.database.sqlite.DatabaseObjectNotClosedException:
I\'ve a situation where I\'ve two remote services accessing a SQLite DB. Each service is opening a separate connection to the db and are doing a insert/read/delete operations. The services are working[详细]
2023-04-10 03:45 分类:问答Android StartActivtyForResult() from a Service
First I\'m sorry for my english that is not so good :). I am facing a problem to develop my app. That is a general architecture scheme of my solution.[详细]
2023-04-09 22:10 分类:问答Bind unbound Services in Android
I\'m developing a Android Service. I would like the service to run even when the application not is active. So I start it without binding it:[详细]
2023-04-09 12:46 分类:问答onBind and Service connect?
There seems to be a small delay after I bind to a remote se开发者_运维知识库rvice.The onServiceConnection works fine.The binding work fine.There is just a delay problem I think.For example in the onCr[详细]
2023-04-08 21:56 分类:问答Is it possible to mock android services under unit tests?
I\'m trying to write unit tests for my android application and I want to mock my service class. I want to test some error behaviors in the service, such as connection errors or file not found.[详细]
2023-04-08 19:51 分类:问答Stop unBound service in Android
I have a service that autoupdates a 开发者_Go百科database in a given time interval. To do this it gets information from the Internet.[详细]
2023-04-08 13:59 分类:问答One loader for all activities
Im building an Android application. It parses a feed which is stored in a DB. Each activity of the app is able to get this data from the DB.[详细]
2023-04-08 13:00 分类:问答Service with AsyncTask
I have heard that it isnt good to have an async task in a service. Is it really necessary for an AsyncTask or just onStartCommand()?[详细]
2023-04-07 22:40 分类:问答Need Help in services running in background
I need to create 开发者_JS百科a background service like when user is trying to open any of the installed application, let him know that application\'s information (eg: Package-name) before that applic[详细]
2023-04-05 14:46 分类:问答How to not end an Android IntentService when onHandleIntent() finishes?
I start an IntentService.In onHandleInt开发者_如何转开发ent() I make an HTTP request with a Handler that is called when the request completes, like so:[详细]
2023-04-04 11:32 分类:问答