Shut down the uProxy UI when in the background on Android to save RAM
In theory, uProxy is supposed to work correctly regardless of whether the UI is visible. When the UI is not visible (the window is closed), everything keeps working, even though the polymer code is unloaded.
On Android, we keep the UI running perpetually. If we could kill it when our app goes into the background, we might be able to free up a lot of memory. (However, note that there could be some code, like #2748, that needs to be refactored before this is actually safe.)
Good call @bemasc! (Of course, a separate but related issue is that our UI needs so many resources in the first place - IIUC, it shouldn't, given how little it actually has to do. Hopefully the Polymer 1.0 upgrade and/or the hot pot implementation will improve things there soon.)
Neat idea. Could this be a case where the app/extension split actually helps us?