Is it possible for an app to always stay on screen. - General Questions and Answers

Hi there,
I am currently making an app for my college project. Is there any way that can make it possible to force the app to always be on top and never get exited ?
Like besides essential services that run in background , only thing that works on foreground is the app nothing else not even mobile UI.

Related

Im Rooted!... Now my apps are always on?

So I rooted this sucker yesterday and have noticed that once I have rooted my apps are always opening on their own... What gives? When I say opening on their own, every time I open task killer their are a ton of apps that are opened that i never even touched. And after I kill them they start showing back up automatically. Also advanced task killer will not kill itself any more I have to manually close the program... anyone else experiencing this? Anyone know how to make it stop?
Stop using task killers would be a good start. You are actually slowing your phone down
Sent from my ADR6400L using Tapatalk
Yes sir, task killers are a joke. Android is the best task management you can have.
___
Sent from my HTC ThunderBolt 4G LTE VIA XDA Premium
Task killers are a bad idea. Let android deal with the memory management itself, there is no need for an app to do this. The apps you are seeing aren't really "apps," they are services, and they were designed to run in the background to deal with certain things. Ditch the task manger and don't worry about the running services unless something is misbehaving.
please listen to these 3...
K sweet thanks guys
Another task killer bites the dust... Sweet!
Our work here is done boys, we can go home now.
Lmao @^ lol
Android has always opened your apps in the background when it feels it wants to. Nothing to do with root, just the way android works.
RogerPodacter said:
Android has always opened your apps in the background when it feels it wants to. Nothing to do with root, just the way android works.
Click to expand...
Click to collapse
Not when it wants to lol, when an app starts a background service. If you want to disable auto run apps on startup check out autostarts. A root app which can stop apps from opening on their own at boot. Some things you don't need to run on boot, if it doesn't have push notifications and it's not something you use regularly no need for it to open and you can disable it to speed up boot.
mjones1052 said:
Not when it wants to lol, when an app starts a background service. If you want to disable auto run apps on startup check out autostarts. A root app which can stop apps from opening on their own at boot. Some things you don't need to run on boot, if it doesn't have push notifications and it's not something you use regularly no need for it to open and you can disable it to speed up boot.
Click to expand...
Click to collapse
no actually android loads up groups of apps at one time, when it thinks it might be needed by the user. open system panel and go thru and check, i have 5-7 apps, all started at say 5:07pm, and were never opened by me. but they are cached in the background. its been this way for a long time.
Stop using a task killer, android... oh wait...

[Q] Make an app always run

Is there a way to make an app always run? I want specifically to make Firefox mobile always run on background as it seems to be killed sometimes when there is not much free RAM. It annoys sometimes that Firefox is killed even when I switch off from it to my dictionary app and switch back. Any ideas? I think this is doable because apps like LaunchPro is alway running on background without being killed by Android's task management.
You'll rape your battery if you interfere with Android's memory management.
There seem to be a bunch of apps that keep running some of them useless but my 'Messages' app keeps closing pretty soon after I stop using it and for some reason takes an annoying amount of time to start up again after it's been closed... I could really use making it run in the background as I think it's a lot better than the 3rd party ones on the market.

Keeping Apps Running in the Background

Hi, I've been looking for a way to keep apps open/running in the background so that even if I switch to another application the backgrounded app is still running as it would if it were in the foreground. A good example of this is Backgrounder for iOS, except I require the functionality in android. I've tested a few multi-tasking apps but have found none so far that actually include this feature and it seems like it ought to be possible.
Sent from my PC36100 using XDA App
I'm not sure if this is possible, as it goes against the activity lifecycle on android.
For "background activities" try implementing a service
That's disappointing, but thanks for your reply.
aitorTheRed said:
For "background activities" try implementing a service
Click to expand...
Click to collapse
how can I do this?
Dexter_prog said:
how can I do this?
Click to expand...
Click to collapse
http://developer.android.com/guide/topics/fundamentals/services.html
and some sample code
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/index.html
Just scroll down to where it says "Service".
Hope it helps!
Yeah, I came across those sites when I googled before, but I can't quite understand how to do that as I am not a programmer. It doesn't sound like a very hard task. I mean, it would be just modifying the Manifest.xml inside the .apk, right? My goal is to keep a replacement launcher, contact app, dialer and messages app running all the time.
Hello guys, you can use app settings, the xposed module to keep certain apps from closing. I don't have it installed right now but the option is something like "resident" as far as I remember.
Sent from my SM-N910C using XDA Free mobile app

Home vs back button exiting apps

From my layman understanding of how android OS works, leaving an app via the home button will place the app in a "pause" state but not remove it from memory until the OS decides it has been paused a while and wants the resources for something else.
Using the back button is supposed to tell the OS that you're done with the app and take the service out of memory usage *IF* the app was coded well enough to cooperate.
But I've noticed on my phone that no matter which method I've used, when I open the stock task manager the apps remain as running services regardless. So does it make any difference on my battery life and system resources which method I use?
Sent from my MB860 using XDA App
well i would suggest that you should close only apps like games or facebook(because facebook keeps syncing and games use a lot of cpu).Other processes for example keyboard do not affect battery life and should be running in the background

Alternative SMS apps stop working, only native SMS app stay alive, why?

Hello,
I don't have any problems to receive SMS with the native application.
With other apps (QKSMS, Chomp, etc), it works for a moment, but after the night for example the SMS do not arrive anymore.
If I launch the app, it works for a few hours, but the previously sent SMS are definitely lost.
It's like if the system kills the SMS service as long as it's not the native one. But I thought this was Android to manage SMS reception, not the apps... I find nothing on the Web. Do you have any idea of a solution?
(I don't think it's specific but this happens on my tablet Lenovo Tab4 with Android 7.1 rooted.)
Try removing the SMS app you are using from battery optimization. Settings -> battery -> 3-dot menu (I think that's the location on 7).
Thanks, but already tried. I guess these apps are not designed to stay in memory, just receveid a notification from the system.
I don't understand why it seems that I'm the only one with this problem!
Open the problem app, then go home. Open the recents menu, does the app have a padlock icon? If so, lock it. That should prevent the OS from killing the app.
It seems to work. But I still may can close the app by inadvertence, this is not a real solution. Why am I the only one who must do this? :'(
Thanks for your time, I think it's that or using the default app, no other choice.
Daxorp said:
It seems to work. But I still may can close the app by inadvertence, this is not a real solution. Why am I the only one who must do this? :'(
Thanks for your time, I think it's that or using the default app, no other choice.
Click to expand...
Click to collapse
It's all about battery life. The aggressive methods of killing apps varies from manufacturer and device. Huawei, Samsung, OnePlus and Xiaomi are extremely aggressive at killing off apps. Android 9/10 is more aggressive than 7.
OK, it may be Lenovo the guilty.
I write too fast. It does not work also by locking the app in the recents menu.
So I'm forced to use native application.
Thanks again
PS: I will try by putting a widget of QKSMS, it seems to help...

Categories

Resources