I know this question is asked a lot, but I dont really understand it. I google very much. How can I repeat a service every 5 minutes, even when the app is not running? Without you need to reboot.
on 01/12/2013 – Made popular on 01/12/2013
Can I run two services in android, I have a App with a Service, this service extends of Service and it is run in background each 4 seconds, but this service in background consumes me much battery and mobile data plan. Can I run the app with GCM and the old Service , is possible work both services in a same project?
I m making a set of apps and I have pretty much the same background service for all of them.
I'm trying to make an app that has only this Service so I don't repeat it in all of them, but the thing is don't need any Activity because there is no UI needed for it, and so the user can't close it except if they stop the Service.
I tried to remove the Activity but then the app doesn't run or start.
Recently working with google play services and especially LocationClient there is one thing I cannot understand and not mentioned in the docs.
For mLocationClient.connect() It is mentioned in the docs that
public void connect ()
Connects the client to Google Play services. This method returns immediately, and connects to the service in the background.
I am developing an android app. in which i want to take snanshot when the application is running in background. but i came to know that background services doesn't allow taking screenshot using background services, Please guide me what should i do ?
I'm in the process of migrating from AdMob SDK to Google Play Services. I've done most of the job and things seem to be working fine, but I'm not sure I understand the logic behind some of the interaction.
The changes I've made can be found here: Google Play Services Migration.
When am I utilizing Google Play Services with my new code?
My kindle disconnects and automatically reconnects every 2-10 seconds ever since i rooted it making it impossible to do anything online. Finally i figured out how to stop it when i stopped when i stopped all google services and process running.
I have a service to scan Bluetooth Low Energy devices and show a notification. This works if the app is started or the the app is in background. But if the app was removed from background, the service is running but the bluetooth scan dont work. Can a service do something if the app is killed? Thank you.