Keep app open - Android Q&A, Help & Troubleshooting

I have an android app that basically loses its connection while running in the background. However if the phone is kept on with screen on it keeps working.
Is there any app to keep the app in the foreground with screen off?
Sent from my SM-G930F using Tapatalk

AsGF2MX said:
I have an android app that basically loses its connection while running in the background. However if the phone is kept on with screen on it keeps working.
Is there any app to keep the app in the foreground with screen off?
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
you may try to add that under ignore optimization list

shashank1320 said:
you may try to add that under ignore optimization list
Click to expand...
Click to collapse
I have tried that but it didn't yield any results. When the phone goes to sleep for around 10 mins or so, the app doesn't receive any alerts. If I had an option to ditch the app I would but I'm stuck with it.
Sent from my SM-G930F using Tapatalk

AsGF2MX said:
I have tried that but it didn't yield any results. When the phone goes to sleep for around 10 mins or so, the app doesn't receive any alerts. If I had an option to ditch the app I would but I'm stuck with it.
Click to expand...
Click to collapse
Which app, phone and rom details?

shashank1320 said:
Which app, phone and rom details?
Click to expand...
Click to collapse
The phone is a J6 2018 with the stock 8.0 rom. The app in question is Salesforce.
A wire shark capture from the wifi ap shows the phone basically doesn't keep the connection alive and downloads all Salesforce push alerts when the phone is switched on.
Strangely other apps including chat apps like whatsapp works fine.
Sent from my SM-G930F using Tapatalk

AsGF2MX said:
The phone is a J6 2018 with the stock 8.0 rom. The app in question is Salesforce.
A wire shark capture from the wifi ap shows the phone basically doesn't keep the connection alive and downloads all Salesforce push alerts when the phone is switched on.
Strangely other apps including chat apps like whatsapp works fine.
Click to expand...
Click to collapse
May be thats the app causing this. Sime apps cause such things like MDM, mobile pass, Symantec VIP etc. Kinda all corporate apps.
Whats was the behaviour on any of your other phones?

shashank1320 said:
May be thats the app causing this. Sime apps cause such things like MDM, mobile pass, Symantec VIP etc. Kinda all corporate apps.
Whats was the behaviour on any of your other phones?
Click to expand...
Click to collapse
I had an iOS device which is working fine but an S7 device had the same issue. A friend of mine said the same on a V20 with 7.0.
Sent from my SM-G930F using Tapatalk

AsGF2MX said:
I had an iOS device which is working fine but an S7 device had the same issue. A friend of mine said the same on a V20 with 7.0.
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
Yes because iOS and Android handles the applications in totally different way. as all of your Android devices and your friends's have the same behavior, its application causing this and not OS specific. Corporate apps behaves like this, even boxer email (VM ware owned) act differently on Android and works just fine on iOS as if they were developed for iOS only.

shashank1320 said:
Yes because iOS and Android handles the applications in totally different way. as all of your Android devices and your friends's have the same behavior, its application causing this and not OS specific. Corporate apps behaves like this, even boxer email (VM ware owned) act differently on Android and works just fine on iOS as if they were developed for iOS only.
Click to expand...
Click to collapse
Agreed on app behavior and OS. At the moment I am collecting info before I pass it on and at the same time trying desperately not to look like I'm ignoring folks when I check the phone every 10 mins. Sadly the app was rolled out and has to be used.
At this point I would settle for something that would wake the phone up every 10 mins or something just because of this.

Related

A possible (!) reason of high Android OS/battery draining(Need feedback!)

Hello,
I just installed Android Booster FREE. It's an app that allows you to see what apps are draining the most.
And I maybe found a reason of high OS usage.
On my phone the top 1 draining app is MTP Application(with 36%). Since it's an Android app(package name: "com.android.MtpApplication), it'll be counted in Android OS and is indeed listed.
Could anyone please try and verify this on their own phones? To see app specific usage, install with link above, open it ->Utilities -> Power Manager -> Applications.
Sorry if this isn't the reason or if it's only on my phone. But I don't think so. And it would be a good reason since MTP application is Samsung-specific. My firmware: XKE2.
Please let me know! Thanks!
And please don't vote if you have frozen your apps !
EleCtrOx666 said:
Hello,
I just installed Android Booster FREE. It's an app that allows you to see what apps are draining the most.
And I maybe found a reason of high OS usage.
On my phone the top 1 draining app is MTP Application(with 36%). Since it's an Android app(package name: "com.android.MtpApplication), it'll be counted in Android OS and is indeed listed.
Could anyone please try and verify this on their own phones? To see app specific usage, install with link above, open it ->Utilities -> Power Manager -> Applications.
Sorry if this isn't the reason or if it's only on my phone. But I don't think so. And it would be a good reason since MTP application is Samsung-specific. My firmware: XKE2.
Please let me know! Thanks!
Click to expand...
Click to collapse
Been frozen since day 1, don't need it unless you're messing with crappy Kies...
cmd512 said:
Been frozen since day 1, don't need it unless you're messing with crappy Kies...
Click to expand...
Click to collapse
Yeah I just frozen it and renamed the apk to be sure, but I need feedback(and % eventually) from those who haven't frozed it and are reporting high OS usages.
My top10 power draining apps is Kies via Wifi. Interesting as I never use Kies via wifi before. LOL
jonrwg said:
My top10 power draining apps is Kies via Wifi. Interesting as I never use Kies via wifi before. LOL
Click to expand...
Click to collapse
No MTP in the list?
A poll is added, please vote .
EleCtrOx666 said:
No MTP in the list?
Click to expand...
Click to collapse
Nope.
1) Kies via Wifi 13%
2) CSC 11%
3) Fruit Ninja 3%
4) Twitter 2%
5) Tapatalk 2%
6) Facebook <1%
7) Whatsapp <1%
8) Android Booster <1%
My top power draining app is com.sec.android.app.lcdtest and it says 100%......havnt got a clue what that means
greigster said:
My top power draining app is com.sec.android.app.lcdtest and it says 100%......havnt got a clue what that means
Click to expand...
Click to collapse
that's strange, but that's also counted as a part of "Android OS" I think, so it could be that (even though I don't have that!).
Are you sure that this program works? It lists Video maker as 23% of my power consumption.. And I never ever started the video maker on my phone......
TMaLuST said:
Are you sure that this program works? It lists Video maker as 23% of my power consumption.. And I never ever started the video maker on my phone......
Click to expand...
Click to collapse
Hmm if it's that I would look a bit dumb with creating a thread for that ^^'. I installed it on advice from someone on this forum in Themes/apps section(here), and I though it wasn't bad because the rest of the apps seems to be correct with me /:.
Here is my usage. Its Android OS again... but look at the time since unplugged and the total power left (60%)!! I have used it quite a bit as well. Ive never had a smart phone that lasts so long.
rovex said:
Here is my usage. Its Android OS again... but look at the time since unplugged and the total power left (60%)!! I have used it quite a bit as well. Ive never had a smart phone that lasts so long.
Click to expand...
Click to collapse
Please read the original post and post your top 1 draining app, thanks! (Just trying to know why Android OS is such high )
com.samsung.InputEvent is my top app.
rovex said:
com.samsung.InputEvent is my top app.
Click to expand...
Click to collapse
Wow, this app is definitely not working good . I can't see why keyboard would drain battery. Sorry for this guys. The application probably just go in "Android OS" and pick ups a random application for blaming it.
At least I tried, I guess. :/
here it is: com.sec.android.app.encrypt
MOM2006 said:
here it is: com.sec.android.app.encrypt
Click to expand...
Click to collapse
Well this app is not good working: it just picks up the first in the list of "Android OS" as I have experienced.
Mine says BluetoothTest!
The MTP makes a certain sense though. If you look in various events in the Autostarts app, it appears a lot.
Sent from my GT-I9100 using XDA Premium App
What you have to remember with mine is that im NOT getting bad battery life, im getting double that i got with my Desire or Dell streak.
EleCtrOx666 said:
Well this app is not good working: it just picks up the first in the list of "Android OS" as I have experienced.
Click to expand...
Click to collapse
have an exchange account running in push mode. maybe this cause it. when i disable exchange email heavy battery drain is gone. but that's not a solution for me. i need my mails on the phone.
MOM2006 said:
have an exchange account running in push mode. maybe this cause it. when i disable exchange email heavy battery drain is gone. but that's not a solution for me. i need my mails on the phone.
Click to expand...
Click to collapse
Nope I ment the app in the OP, sorry!

XWLA4 roms incompatible with amazon market?

Anyone able to login to the amazon market app on xwla4? No matter which one it won't accept login and password .
Sent from my SGH-I777 using xda premium
Works on mine, just signed in, I haven't found any issues reported yet.
http://forum.xda-developers.com/showthread.php?t=1502426
Many of the new roms are being stripped down, I assume breaking things so just ask them to either include the files or ask for what is being removed/modified.
Also having issues with the latest version of google music as well :-/
Everythings perfect with shishirROM
Sent from my GT-I9100 using XDA App
Honestly I have had this problem on LILROM also (also was playing around with Rebel) and they both do it. I triple checked this before posting so someone didnt think I was just being dumb and it was a password problem but I can login fine to Amazon using the same Email/password on my laptop and on Shostock/ICScrewed fine. It was my understanding that the Amazon market is limited to US users so far and not international which was why I was curious -- its really a deal breaker for me because I have a ton of paid apps that are shared across my phone and several Kindle Fires. Hopefully someone figures this out and thanks for taking the time to respond btw...
defnow said:
Everythings perfect with shishirROM
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Thanks I will give it a try but having tried LIL/Nonamed and Rebel already I suspect something is going on here that is either in relation to this base or how its being hellraised? I am not a developer but work in IT so if there is any information I can provide that might help correct this please let me know.
I will post back with some results on this later I need to wait for my GF to go to bed so she does not think I am ignoring her texts.
No issue here. Using lilrom, flashed before it was named, if that makes any difference.
Sent from my SGH-I777 using XDA App
i was on shishir rom also and didnt have any issues with amazon appstore.
Please don't blame ROMs for issues with logging into cloud services unless a problem like this exists for more than a day or two.
Login problems are frequently problems on the service provider side - for example, the Market wigged out on me this morning, but 20 minutes later it was OK.
If you install lots of roms check amazons site under your apps and devices. You may have used up the allowed amount of devices, just delete some and try to login from your mobile again.
Entropy512 said:
Please don't blame ROMs for issues with logging into cloud services unless a problem like this exists for more than a day or two.
Login problems are frequently problems on the service provider side - for example, the Market wigged out on me this morning, but 20 minutes later it was OK.
Click to expand...
Click to collapse
Out of curiosity..If it was a problem with the market it wouldn't allow you to log in from computer either?
Nyk0n. said:
If you install lots of roms check amazons site under your apps and devices. You may have used up the allowed amount of devices, just delete some and try to login from your mobile again.
Click to expand...
Click to collapse
This. Ran into it a couple weeks ago. I think the limit is 20 devices. Every new login on a different ROM appears to count, from what I saw...though I didn't dig in detail, just deleted some aria and cappy instances.
Sent from my SGH-I777 using XDA App
jasvncnt1 said:
Out of curiosity..If it was a problem with the market it wouldn't allow you to log in from computer either?
Click to expand...
Click to collapse
No, completely different interface - for example, it's common for the Android Market to be inaccessible or wacky when accessed by devices but for the web frontent to be fine.
Entropy512 said:
No, completely different interface - for example, it's common for the Android Market to be inaccessible or wacky when accessed by devices but for the web frontent to be fine.
Click to expand...
Click to collapse
Got ya, thanks for the clarification.

I hate this about Android!!! How do i fix it?

TuneIn Radio
FaceBook
Just 2 of the many Apps that run background processes without my permission and offer no options to stop them loading on boot.
Why TuneIn Radio needs a background process is beyond me. But its a blatant abuse of a weakness in android.
Is there a way to stop these processes for good? or is uninstall the only option?
Don't use bad apps. And learn how the system works.
Download 'All-In-One' toolbox, it will allow you to disable startup processes, some advice you might actually find helpful...
giftedgiggsy11 said:
Download 'All-In-One' toolbox, it will allow you to disable startup processes, some advice you might actually find helpful...
Click to expand...
Click to collapse
Thanks!
giftedgiggsy11 said:
Download 'All-In-One' toolbox, it will allow you to disable startup processes, some advice you might actually find helpful...
Click to expand...
Click to collapse
Indeed great toolbox.
Sent from SCH-I535 (CM10 0920) via XDA Premium
ivan1real said:
Don't use bad apps. And learn how the system works.
Click to expand...
Click to collapse
So what if they run in the background? ram is there to be used.
DramatikBeats said:
So what if they run in the background? ram is there to be used.
Click to expand...
Click to collapse
Its not using Ram. Its using CPU and power and monitoring what i do on my phone.
Cashed processes use RAM.
Have you got anymore detail about the app TuneIn Radio?
I've had this installed for a number of weeks now and was unaware or background processes being run.
What type of processes are these and what do they do?
I've had a quick look at the permissions the app has and the following is all I can find:
System Tools - automatically start at boot
Why would it need to start at boot?
I love tune in radio i bought the app it's great i use toolbox to block it off when i am not using it.. FB i couldn't care less for lol..
irzero said:
Its not using Ram. Its using CPU and power and monitoring what i do on my phone.
Cashed processes use RAM.
Click to expand...
Click to collapse
Really? Any process that is running uses RAM. Please understand how a system works before looking for a reason to fix something that may not be broken.
Sent from my Nexus 7 using XDA Premium HD app
Padraic73 said:
Really? Any process that is running uses RAM. Please understand how a system works before looking for a reason to fix something that may not be broken.
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
i know it uses ram. It also uses CPU and battery too if its a live process. I meant that it wasnt cached in ram and harmless.
Please dont talk to me like im stupid i have been building computer systems for over 10 years.
irzero said:
i know it uses ram. It also uses CPU and battery too if its a live process. I meant that it wasnt cashed in ram and harmless.
Dont talk to me like im stupid i have been building computer systems for over 10 years.
Click to expand...
Click to collapse
Lol. How do you know its a live process. I have Facebook installed and the only thing its doing is running as a service to provide push notifications. I have system panel pro running and Facebooks average CPU consumption is actually under 1%. Can't say the same for tune-in radio
Facebook uses a service for notifications and the messenger i guess, about tunein, don't know. But that's how android works, if you want an app that pushes notifications which are not directly covered within the system itself, you need a service, otherwise there would run the whole app all of the time which needs even more resources (btw, that's how ios handles it).
Simple solution, use the already told or just freeze the app with titanium or disable notifications if possible.
Sent from my GT-I9300 using Tapatalk 2
Tectas said:
Facebook uses a service for notifications and the messenger i guess, about tunein, don't know. But that's how android works, if you want an app that pushes notifications which are not directly covered within the system itself, you need a service, otherwise there would run the whole app all of the time which needs even more resources (btw, that's how ios handles it).
Simple solution, use the already told or just freeze the app with titanium or disable notifications if possible.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
i have uninstalled Facebook anyway i found 3 active processes and even one in the System processes! Its basically just malware that app.
Now Tunein is becoming a hassle. even with the startup blocked it keeps booting up!
irzero said:
i have uninstalled Facebook anyway i found 3 active processes and even one in the System processes! Its basically just malware that app.
Now Tunein is becoming a hassle. even with the startup blocked it keeps booting up!
Click to expand...
Click to collapse
LOL
About Facebook, there is a app called sns if I'm not wrong, delete or freeze it with titanium, is just a Facebook interface.
Tunein, check if there isn't an additional service, sometimes there are bad apps where the service starts the app and the app starts the service.
Sent from my GT-I9300 using Tapatalk 2
Tectas said:
About Facebook, there is a app called sns if I'm not wrong, delete or freeze it with titanium, is just a Facebook interface.
Tunein, check if there isn't an additional service, sometimes there are bad apps where the service starts the app and the app starts the service.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
i have uninstalled them now because i am unhappy in the way they run on my system. anything that behaves this way is obviously trying very hard to stay active on my system for a reason.
I guess they are data mining for the adverts that support the app. Not on my phone they dont.
irzero said:
i know it uses ram. It also uses CPU and battery too if its a live process. I meant that it wasnt cashed in ram and harmless.
Please dont talk to me like im stupid i have been building computer systems for over 10 years.
Click to expand...
Click to collapse
We can only form our opinion on that from the content of your posts.
"It doesn't use RAM." is what you said, which you now deny.
You don't know the difference between cash and cache.
You don't know how to use capital letters or apostrophes.
Not looking good so far
Sent from my GT-N7000 using Tapatalk 2
irzero said:
i know it uses ram. It also uses CPU and battery too if its a live process. I meant that it wasnt cashed in ram and harmless.
Please dont talk to me like im stupid i have been building computer systems for over 10 years.
Click to expand...
Click to collapse
Just because you build computers doesn't mean you understand how they intertwine with the software. Especially since most computers have Windows installed on them. The RAM and caching process is much different compared to Linux, which Android is based off of. Thank you, have a nice day!
irzero said:
i have uninstalled them now because i am unhappy in the way they run on my system. anything that behaves this way is obviously trying very hard to stay active on my system for a reason.
I guess they are data mining for the adverts that support the app. Not on my phone they dont.
Click to expand...
Click to collapse
Android uses a strict permission policy, you can view every permission an app has before you download it and no app can gather data without given permissions.
I don't know and to be honest i don't care which permissions those 2 apps have, because i don't use them, but i guess at least tunein radio has no access to private data.
Sent from my GT-I9300 using Tapatalk 2

[Q] Work email on Nexus 9 requires encryption

My work emails require my device to be encrypted. I thought it would be okay since android 5 comes "pre-encrypted". However when I go to add my work email, it ask me to encrypt the device as any other android device (running kitkat and below) would do. So after clicking encrypt it goes to the green android screen and then boots up as if nothing has happened. If I try to update my emails, it goes through the whole process again. Anyone else facing this problem????
May be wrong on this.
Have you got either PIN or Password set up at start? - Without that then encryption settings are irrelevant. (or were in earlier Android versions)
Yeah I have a pin password setup, I'm extremely annoyed as I got the tablet for work purposes as well as personal use, instead of carrying a laptop around.
Sent from my A0001 using XDA Free mobile app
Gmail and exchange here http://www.androidpolice.com/2014/10/31/gmail-5-0-exchange-support-material-design-landed-apk-download/
SteveTheIndian said:
My work emails require my device to be encrypted. I thought it would be okay since android 5 comes "pre-encrypted". However when I go to add my work email, it ask me to encrypt the device as any other android device (running kitkat and below) would do. So after clicking encrypt it goes to the green android screen and then boots up as if nothing has happened. If I try to update my emails, it goes through the whole process again. Anyone else facing this problem????
Click to expand...
Click to collapse
I understand your frustration. As this is a brand new device with brand new software its very possible its a bug. The other possibility is that Exchange may need an update (less likely).
I'm not sure what your work environment is like but if you were to talk to your network admin and show him the tablet and how its already encrypted they can potentially put a policy in place to not require encryption
Have you given Nine a shot? It does app-level security, so the only time you need to use a pin is when you open the app, not for the device. I normally use xposed to get around the exchange security, but started using Nine on my N9 and Moto X in anticipation of losing xposed. I'm very pleased with it.
Wow nine works like a dream and it has a nice interface!
Sent from my Nexus 9 using XDA Free mobile app
ppdd said:
Have you given Nine a shot? It does app-level security, so the only time you need to use a pin is when you open the app, not for the device. I normally use xposed to get around the exchange security, but started using Nine on my N9 and Moto X in anticipation of losing xposed. I'm very pleased with it.
Click to expand...
Click to collapse
SteveTheIndian said:
Wow nine works like a dream and it has a nice interface!
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
Excellent suggestion! I too have used Nine in the past and it is a very good program!
plus it has threaded emails. which is the main thing gmail is missing with my exchange address.
Solved the problem. All I had too do was set a pin lock on boot up as well as on the lockscreen!
Sent from my Nexus 9 using XDA Free mobile app
Hi all. I loved Nine and used it for my work email. I like that it allows app-level encryption since device level really really really slows things down.
However, after the most recent update, Nine is making it such that I have to encrypt the device. The reasoning is that calendar and contacts are handled by native apps and not by Nine. I tried to have Nine only sync emails and not calendar or contacts but it still requires the same thing.
Has anyone found a workaround for this? Or alternatively has anyone managed to come up with a exchange security bypass for gmail?
I'm on a Nexus 6.
If you've got a nexus 6 you should already be encrypted, am I right?
Sent from my A0001 using XDA Free mobile app

Google Photos Not Syncing When Managed Manually in Battery Options

I have the Google Photos app set to be managed manually in power settings but the pictures still do not sync when I take them with the camera. I need to manually open the app to get the sync to start.
Ive been reading around and it seems on other phones modifying this option fixes the issues, but not on the mate 20 pro.
Is anyone else experiencing the same?
Same problem as you. Still there on Android 10 beta.
Hmtsjmftsch said:
Same problem as you. Still there on Android 10 beta.
Click to expand...
Click to collapse
Damn, was hoping Android 10 would fix this issue. I wonder why its happening, turning off the battery saver features allows all my other apps to function in the background.
I think it's an app issue, it's also happening on other devices of mine such as Xiaomi. At some point I'll try rolling back to an earlier version of the app and see if it's working.
You all obviously didn't get the memo or notification that Google photo no longer backups automatically.
This might help..
https://www.cnet.com/how-to/google-...d-drive-heres-how-to-keep-your-photos-synced/
Sent from my EVR-L29 using Tapatalk
Limeybastard said:
You all obviously didn't get the memo or notification that Google photo no longer backups automatically.
This might help..
https://www.cnet.com/how-to/google-...d-drive-heres-how-to-keep-your-photos-synced/
Sent from my EVR-L29 using Tapatalk
Click to expand...
Click to collapse
This is not related to what we are talking about, we're not worried about anything to do with google drive. Just the Photos application auto-syncing in the background - works on some phones and not others.

Categories

Resources