android-service
How can one pass data back to a paused activity from a service through a pending intent?
I have an app that is checking the location of the device in a service and whether it has entered one of many predefined areas.The service has a reference back to the activity when the activity is ope[详细]
2023-03-19 09:56 分类:问答android service notify activity completed best way?
I created a service which syncs data from the web on a background thread and want to notify a list activity when the service has completed so it can update it\'s cursor?What would be the best way to d[详细]
2023-03-18 11:58 分类:问答How to copy files from assets on setUp method from an android Junit ServiceTestCase?
I\'m writing JUnit test code for an android service implementation, and I have to initialize the tests with some files copied on sdcard. My class signature is like this:[详细]
2023-03-18 10:29 分类:问答android service is NullPointerException
who can help me? Why bindService() on onResume() of Activity will be create? How to control the create in date of bindService()?[详细]
2023-03-18 09:24 分类:问答Networkonmainthread exception while executing httprequest in a bound service from another service via aidl
I have a service which binds another service via aidl.The bound service executes a httprequest and returns a response when the method is invoked from callign service via aidl.[详细]
2023-03-18 00:37 分类:问答How can I save data from Android service?
I have a service that collects da开发者_如何学Gota, can I save the data in case of reboot or any other action that will restart the service, and how can I do it?[详细]
2023-03-17 13:11 分类:问答order of operations when a Service gets shut down
I\'m writing a Service that uses an AsyncTask to do some network operations. Let\'s say the doInBackground of the AsyncTask is taking a very long time, and while that\'s happening, resources get low a[详细]
2023-03-16 20:12 分类:问答how to reference object created with Intent / startService
If I create a service in my app\'开发者_如何学Gos onCreatelike this: Intent srv = new Intent( this, MyService.class );[详细]
2023-03-16 15:03 分类:问答How to programmatically check if a service is declared in AndroidManifest.xml?
I\'m writing a library that provides a Service that is used by other developers by including it in their project. As such, I don\'t have control over the AndroidManifest.xml. I explain what to do in t[详细]
2023-03-16 14:27 分类:问答How to execute Async task repeatedly after fixed time intervals
How to make Async task开发者_JS百科 execute repeatedly after some time interval just like Timer...Actually I am developing an application that will download automatically all the latest unread greetin[详细]
2023-03-16 04:38 分类:问答