hi i am new to android. can anybody help me to solve this.
i want to run a background thread which will request to the server response in some time gaps. this threads have to be run in background through out the application. if any one know how do this in android please let me know.i hope you understood my problem .thanks in advance
basically you are looking for services
see here
I think you are looking for a service.
Related
Hi so I got a new phone but the apps I need to stay in the background keep on being killed. I have turned off battery optimization and used the don'tkillmyapp said it was 100% not much help. I looked around and someone mentioned that you can make apps stay in the background using adb. Can you please link a website on how to do that since I'm a beginner or you can just tell me how. Please and thank you.
Use Worker. You can use workers for a specific task or to run others periodically. Here I leave the link for more information.
https://www.google.com/url?sa=t&source=web&rct=j&url=https://developer.android.com/reference/androidx/work/Worker&ved=2ahUKEwiQjZyz6JbuAhUm2FkKHQheAnIQFjABegQIARAB&usg=AOvVaw3RUYn3s9t_S_Mks1x4p8H0
I am looking for ways to keep an android app in watch to run in background continuously. Links/methods to do this will be really appreciated. Thanks in advance. I would also like to know more about this.
Use WearableListenerService to run app in background.
This is a very common but rarely solved topic.
I seriously need some help in this guys.
I got this piece of code. Tried calling this service from the main launch activity. But no success, no sound.
kindly help coders. Thanks in advance!
see this example by markana background service music.
here is the link
I'm trying to do an app that can execute some code at specific time (like a service) but time must be changed and setup by the app.
I don't want the whole answer, but i'm newbie, and if anybody knows the good way to acomplish it, and maybe some references i'll be very grateful.
Thanks in advance
Jeff Sharkey's android-sky App Widget includes an example of scheduling code to run at a certain time. It uses an AlarmManager to accomplish this.
Take a look at the Alarm Manager.
I want to change the background image of the activity after every 30 seconds in android.
Does anyone know, how to accomplish this?
Thanks in Advance,
-Neha
This is possible using a Handler. The Android developer guide has some information on how to update the UI using a timer. Hope you find this useful!