Whenever I close the app in the app switcher, the widget loses the current location for weather updates. What's worse is that all locations which I've added in the app are lost upon restarting and I have to select my location again.
I don't suppose the app has to be constantly running in the app switcher for the widget to work correctly?
Yes, usually if a widget is part of a standalone app, the app needs to always run. At least that has been my experience. I don't know about your specific app there though.
I am sure there are apps that make the widget run independently of the main app, but most I have seen seem to need the app running, or the widget won't function.
Turns out this widget doesn't need the app to be running after all. It's just that I had disabled the storage permission as per Android 6 permission settings and that caused a problem even though the app did not complain. I thought it needed to access storage only when adding custom background pictures, which I didn't intend to use.
What's interesting is that without the storage permission even if I left the app running, but it got bumped out of memory and needed to reload, it would also lose location settings. This makes me think there was some sort of virtual storage created in the absence of storage permission, so that as long as the app was running it could save the location there. But it gets erased as soon as the app is closed. Maybe a fail-safe solution for the lack of permission? I could be wrong.
Related
Whenever anyone asks about stuff running the background and how to kill it, the responses always include - "don't worry about it" - Why not? Why should I be ok with the idea that a program that I downloaded, but never ran, is running in the background?
People don't say its 'ok' for all of those apps to be running in the background. It just depends on the type of app before you start to worry. It's 'ok' for some of those apps since they may do some sort of service which is required by either the user or the system.
Another thing to remember is that Android will manage running apps by itself, so when necessary it will kill apps to make sure it has enough available memory to run stuff that you manually start up.
If you'd rather be in control of manually killing running apps then I'd recommend a free all-in-one app called ZDBox (available via the android market):
ZDbox is an amazing all-in-one toolbox. Five stars in xda forum.
ZDbox is an amazing and free all-in-one toolbox. It holds a collection of useful tools and has a nice and easy to use interface. With ZDbox you’re getting your mobile/cell phone under control, do easily some optimization and customize it to your needs. An essential tool which you will love! 5 stars in xda forum.
★ Widgets: Keep screen always on, kill all tasks, WiFi on/off, airplane mode on/off, brightness adjustment, sound settings, rotate screen on/off, bluetooth on/off, start/stop sync, switch between 2G/3G, app lock on/off, GPS on/off, APN on/off (mobile access point), flashlight on/off
★ Battery: Monitoring and showing lots of information about remaining battery time, temperature, health, time since last boot, necessary time until full charge and so on
★ Traffic counter: Monthly/daily mobile data usage overview, shows remaining data traffic, detailed data usage information for each app.
★ Do not disturb: Just set days and the time when you need your privacy and you won’t be disturbed by your phone. Set phone to silent, vibration or airplane mode.
★ App lock: Protect apps with a password or pattern, for exmaple your contacts, Facebook, Twitter, Gmail and so on
★ Task killer: Kill all apps at once, define protected apps which won’t be killed, set auto kill when screen gets locked, mark single or multiple apps to kill
★ Notification bar: One tap on the bar shows remaining battery time, running apps, how much data traffic is left and if app lock is active or not. A tap on these informations starts ZDbox.
★ Uninstaller: Shows used/available internal and SD card memory. Apps can be easily uninstalled. Single or multiple (batch) uninstall possible.
★ App to SD: Move apps to your SD card. Single or multiple (batch) move possible. Only for Android 2.2 and 2.3.
•Cache cleaner:
With Cache Cleaner you can clean your cache fast and easily.With auto cache cleaner ,
you don't need manual operation by yourself everyday.ZDbox is your best scavenger,free your phone's memory,make it as light as a feather.
Click to expand...
Click to collapse
Since you don't need to use them, why you download them?
Well, I think the free all-in-one app is a good choice.
there are lots of apps functioning like that
Because google loves to spy on us.
It's ok because it's how you get a lot of functionality from some apps. Some Widgets for example need to update regularly (while you are on the homescreen at least) so that you get the latest information.
A well written app will only update / run when necessary (using the AlarmManager class typically). Too frequent updating will cause problems with battery life, none at all will cause out of date data being shown (e.g. for my Awesome Widgets I have to update my clock widget very regularly while it is being viewed in order that I can update the clock time (and weather if it has changed)).
It's not about spying, it's about getting functionality out of your Android device.
All the best,
Ash
its just bull****! sory! i have had bRIA take up like 40% of battery even tho i never ran it and i thought it wasnt running ... had to uninstall it... android for sure is great in some areas but definately not perfect,and pls dont tell average users about startup managers etc.
lol nice rant
Are there any widgets that can be used to freeze/unfreeze apps directly? Sure I know about using Titanium backup, but that is way too many clicks if I want to unfreeze Maps.
I was thinking I would like a widget that has the application icon on the left and a toggle status (which you can toggle by pressing it) to the right of the app icon (similar to data toggles, etc). So to unfreeze the app, just press the toggle button, then you can click directly on the app icon to launch it.
When you are done with the app, just toggle it back to frozen state. Maybe the icon would be greyed out or something when in a frozen state, or if the app if frozen and you click on the app icon, it would automatically unfreeze, then launch.
Might be obvious, but you would have the ability to add as apps to the widget (or multiple instances of the widget) and maybe have an option when first installing the widget to add all currently frozen apps to the widget).
If no one had created such an app, and no one is interested in creating a widget, maybe I will try to create it.
Any comments would be welcome.
nrgaway said:
Are there any widgets that can be used to freeze/unfreeze apps directly? Sure I know about using Titanium backup, but that is way too many clicks if I want to unfreeze Maps.
I was thinking I would like a widget that has the application icon on the left and a toggle status (which you can toggle by pressing it) to the right of the app icon (similar to data toggles, etc). So to unfreeze the app, just press the toggle button, then you can click directly on the app icon to launch it.
When you are done with the app, just toggle it back to frozen state. Maybe the icon would be greyed out or something when in a frozen state, or if the app if frozen and you click on the app icon, it would automatically unfreeze, then launch.
Might be obvious, but you would have the ability to add as apps to the widget (or multiple instances of the widget) and maybe have an option when first installing the widget to add all currently frozen apps to the widget).
If no one had created such an app, and no one is interested in creating a widget, maybe I will try to create it.
Any comments would be welcome.
Click to expand...
Click to collapse
so titanium has a widget that does this.. but i have no clue how to set the filter. anyone have an idea?
Take a look at App Quarantine.
http://forum.xda-developers.com/showthread.php?t=1136369
schnowdapowda said:
so titanium has a widget that does this.. but i have no clue how to set the filter. anyone have an idea?
Click to expand...
Click to collapse
The filter is then just a Titanium Label.
So first you create a label e.g. "FreezeApps" and add your app which you want to freeze to this label.
Then you create the Titanium Backup Action Widget and set as Action "Freeze all user & system apps (USE FILTER & EXTREME CAUTION)"
As "Filter by" you set the just created label.
But If you set "No filtering" and let the widget run, I guess, then you will kill your phone because then all apps and especially all SYSTEM APPS will get freezed until the widget will crash because one of the main system apps got freezed and nothing more will go. Just a guess, but I won't try it
But I am searching something like a script to let run maybe throgh Apps2SD or something.
Anybody knows something like it?
EDIT: but momento, I just discovered that Titanium Backup now has an Action "Freeze/Defrost/Launch an app" - this is exactly what I was looking about. It can even provide a password to protect unfreeze (against some no-tech-users at least).
So problem solved.
Hello, i would like to ask something that annoys me.When i exit an app i have a blank aap drawer without any apps and after 5 seconds i get to see the actual apps on the menu.Is this because the app drawer does not lock itself in the memory and it has to reload? it is kinda annoying
Memory management, your app caused shortage of memory so the OS killed the launcher. Some launchers have options to try staying resident, or you can mess with the memory strategy, which can mess things up if you get it wrong.
I have a problem where background services getting killed when recent are cleared.
Apps on question run at boot without visible windows eg. KinScreen, lux, fluid gesture
I have disable miui optimization in developer options, selected no restriction on battery saver and set apps to autostart.
problem still persist if recent are cleared all these services get killed.
Any way to prevent background services being killed??
I have root and open to suggestion but prefer to stay on miui.
i have same question,,
I have this issue too. What I did was lock my apps in recents. Not a clean way to do it, but it works.
NOTE: I posted this same issue in MIUI forums and seems that we're not alone and the issue is MIUI RAM management itself. I hope it gets fixed in future MIUI versions but for now the workaround I gave is our best shot. Hope this helps and enjoy your Poco, I know I am
First, in app info sections, you turn on autostart for each required app.
Secondly, in battery settings, give each required app >no restrictions policy.
Thirdly, lock them in recent menu.
Done.
You need to do these steps for apps such as alarm, email clients and the ones you mentioned. I had to do this with Google photos as well so that it could sync on its own.
lockhrt999 said:
First, in app info sections, you turn on autostart for each required app.
Secondly, in battery settings, give each required app >no restrictions policy.
Thirdly, lock them in recent menu.
Done.
You need to do these steps for apps such as alarm, email clients and the ones you mentioned. I had to do this with Google photos as well so that it could sync on its own.
Click to expand...
Click to collapse
yes ive done all this but the problem with this is
1. my recent mennu is filled with locked apps
2. some apps start as purely service no visible window
i have to launch it manually so the window appears in recents. eg lux and kinscreen.
any solution to make miui to treat apps and services like stock android. No other OS does this. This is ridiculous
I'm out of ideas now.:laugh:
Check if disabling cleaning of cache memory in battery settings changes anything for you.
Same here. Tried this all, but apps still getting killed. I can't use my gear fit 2 pro app in background. Everytime I clear the recent menu gear got disconnected. Someone please help!
POCO F1 - No root - Locked bootloader - Fully stock
This is the most annoying thing about MIUI. I use Blokada and I need to keep it locked on recents which I hate the most. If I don't lock it and clear recets, Blokada gets killed and VPN gets turned OFF. Can't use live wallpaper for the same reason. On AOSP based ROMs, this problem doesn't exist. It smartly understands which apps need to run in the background and which apps can be killed. Hence, no need to keep an app on the recents. I don't understand what's the necessity of being so aggressive about RAM management when we have 6/8 GB of RAM. Due to this pathetic RAM management, I always see almost 3.9/4 GB free RAM out of 6 GB. And as we know, free RAM is wasted RAM.
There doesn't seem to be a way to turn on high performance mode outside of navigating to battery in the settings and then advanced battery settings. Does anyone know of a way to add a notification switch or even a widget on the home screen to quickly turn it on and off?
Also I have tried my best to eliminate the OS's ability to kill apps running in the background. The one I have issues with the most is PokemonGo. I will switch from one app to another and when going back to PokemonGO it will have killed it and it restarts when going back to it. Loading like I just opened the app for the first time.
Things I have done so far. Disabled battery optimization for the app in the battery settings and turned on "Allow background activity" in the app settings under app management.
I have no task killers installed and the OS is basically stock after a factory reset.
I'm rooted and on DE2118_11_C.16
Have you tried locking the PokemonGo app to prevent it from being suspended?
Also you should check setting under developer mode in APPS section: Susspend execution for cached apps.
I would lower the background process limit from 5 to 3 due to the limited amount of ram on this device and lock any app you want to continue to run if it falls into 4th place.
Also, I would tur off RAM Boost as it does not improve app selection based on my use.
I have it locked yes, still gets closed in the background at random it seems.
RAM Boost was off as well.
The Suspend execution for cashed apps can you explain a bit on how this works? Do I have to cache the app or something in addition for it to work?
I keep the VPN Hotspot, AD Guard, and Pokemon GO locked.
xVoidx said:
The Suspend execution for cashed apps can you explain a bit on how this works? Do I have to cache the app or something in addition for it to work?
Click to expand...
Click to collapse
This will "freeze" apps that are cached (past the open app limit) and they will not take any resources. This also will cause them to stop responding like your Pokemon app.