[Q] Screenshots app android 4.0 - Android Software/Hacking General [Developers Only]

I am working on an app to take snapshots from the running programs in android. Is there a way to access another program or to get an instance of the running activity using a code? Also, in android 4.0 I can take screenshots using the power button. Is there a way to start this service using a code?

Related

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

ICS Torch Activation Code

I'm making an app for school that is a "door control" for a light sensor that opens a door. My app worked fine on gingerbread, but now it force closes on ics. Has the method changed? If so, what is the new code?
Sent from my ARCHOS 80G9 using xda premium
It depends on which hardware you're on. There's no default codes unless you're using a common framework as for cyanogenmod. Those codes are vendor implementations and tied to the hardware they're running on.
Each vendor uses its own codes so only someone with the same hardware can help you about that but remember that it could even be left out from ics as many devices don't have it
Solution is to link to a market app using a shortcut or an open intent
Sent from my GT-P7500 using Tapatalk

[Request] Mainnav Dataloger reader for android

Hello. I'm using mainnav mg950d datalogger for some time, but there is no way to download stored tracks without pc.
I've found mainnav reader for linux but don't know how or it is even possible to port this app to android. Is it possible to simple app for download and clear data via bt from android device using above code? I would be grateful if somebody could make such app for dataloggers.

Automating commands on the Android OS

I'm looking for some software that would allow me to program virtual box to routinely download and uninstall apps within the emulator. Another possibility would be to do this with an actual android device, perhaps with the help of a RasPi or Arduino.
Anyway, this is all just an idea and I'd like to hear what you all have to say about it.
Sent from my SPH-D710VMUB using xda app-developers app

How to run an old app on a newer version of Android?

Hello, 5 years ago I've made myself an application that I'm using daily. I upgraded my phone with the new Android Pie and now my app is crashing with the message "This app has been made for an older version of Android and might not be compatible".
Now I'm wondering: is there any way I can run my old app on Android Pie? (by using a 3rd party application or a sandbox/emulator or any workaround?).
Is there some kind of compatibility mode on Android (like on Windows)?
I still have the sources of my app but I forget the very little I knew about android dev so I doubt I can fix this issue myself. Thanks in advance.
ppp86 said:
Hello, 5 years ago I've made myself an application that I'm using daily. I upgraded my phone with the new Android Pie and now my app is crashing with the message "This app has been made for an older version of Android and might not be compatible".
Now I'm wondering: is there any way I can run my old app on Android Pie? (by using a 3rd party application or a sandbox/emulator or any workaround?).
Is there some kind of compatibility mode on Android (like on Windows)?
I still have the sources of my app but I forget the very little I knew about android dev so I doubt I can fix this issue myself. Thanks in advance.
Click to expand...
Click to collapse
If you have the source code, just modify inside Manifest.xml the target sdk version to Android Pie, import it into Android Studio, modify also the build script accordingly and recompile the app, it should work in 99% of cases. The 1% case that won't work is if you're using deprecated Android APIs.
Not too confident but I'm going to try what you mentioned thank you.

Categories

Resources