Automatic Application Start When Senses Voltage - General Questions and Answers

I would like to develop a program that automatically starts when a voltage is present (i.e phone plugged in to the wall). Does anyone know how this is possible?

Related

[IDEA] App that sets Full Brightness when Charging/Dims when not charging

Im not sure if this has been implemented or not, but if it hasnt, I think itd be awesome to have an app that sets the screen to full brightness whenever the phone is charging, and when you unplug the phone from the charger it resets the brightness back to the setting you had before...is there anything like this? If not I think there should be
Power Manager... available in the market.
Locale... but will need to lockscreen/unlock for settings to take effect

[IDEA] Know when you can start using your phone after booting

Hi all,
I have an apps idea but I am not a developer and thus will really love if a developer will try to do it for the communities.
It's to check when is your phone ready to be use after a reboot.
Often the time, I must look at my widget continuously to know if the phone has gotten stable to use after a reboot or not. So, I guess this would be a nice addition.
The idea is that the apps should start very early in the boot up process and monitors the CPU usage continuously.
If the CPU usage is less than 10% (or any other value) for 10 seconds (or longer), then the apps will prompt the user, either by a toaster, or via notification, or via sound/vibrate etc.
After the user learns that, the apps will shut down itself and no longer takes up any memory or juice.
What do you all think?
I had the same idea, and solved it with this tiny and handy application : CPU Notify
https://market.android.com/details?id=com.beemer.cpunotify&feature=search_result
It is loaded at boot time, and you can observe that the CPU is at 100%. When it goes down to botton (green) steadily, the phone is ready.
I keep this application constantly since it is very small and battery friendly. It shows your phone activity like task manager in tray icon in Windows world.

[Q] APP: no sleep/no lock app when plugged in?

I'm curious to if anyone knows of an app/widget that will keep the screen on and not lock the system when plugged in?
Basically whenever I try to play a SNES-emu or any game that uses my new Moga BT controller, the system goes into sleep after the 1 min(or whatever time is set), and this is the same if using mini-HDMI output.
I know this can be as easy as increasing the time and such, but i'm sure I will forget to rest it to stock and when I put the tablet in my bag it stays on all the time.
In the Developer Options, there's a setting for the screen to Stay Awake while charging...
Its safe to presume though that when you enable this, and that when you hook the dock up, it will stay awake as well?

[Q] using android as wall display?

I want to mount my old galaxy tab on the wall, keep it plugged in and awake, and use it as an information display from wifi. I specifically want to show the outdoor temp, expected high temp, and time. In other words a wall display I can control from my always-on PC.
I am a programmer so I can write PC software but I would prefer to not write android software. I'm hoping some existing app could show text or probably an image and remotely change the text or image.
I doubt such a thing already exists but I'm hoping someone can help me come up with a clever (kludge) solution.

Background service doesn't run when phone is sleeping

Hello,
I'm doing a simple Android background service that implements the raise to wake up feature. Thus, when the phone is in sleep mode (i.e. screen off) and the user raises the phone from the table, it will be waked up by the service.
When I attach the phone to the computer using the debug USB to test the application, in particular looking at the message of logcat, everything work well. Even if the screen is turned off, I can see from android studio that the service is alive and when I try to raise the phone from the table it will wake up.
However, when I detach the phone from the computer, the service won't work. In details, sometimes it works, but if I leave the phone asleep it doesn't work anymore. Checking the running services on my phone I can see that my service is alive, however it is not responsive.
What could be the problem?
I tried both making the service as background service and foreground service. The result is the same.
I'm testing the service on Android 7.0.
You can see the source code (with a precompiled binary) and/or contribute on github (look for the project called raison, I don't have the permission to put the link). The service is started after the boot of the phone or when the user opens the activity.
It doesn't seem a bug of the application (e.g. in the logic), because it works during the debug phase.
Furthermore, I don't have any power saving option and I see the service running (using the developer options).
Another note is that my phone has the double tap to wake up, however the double tap often doesn't work or is really slow (it wakes up after >10 seconds), thus seems that my system is slowing down so much during the sleep. However, applications like whatsapp work well.
There is a way to force my phone to keep the service running (without slowing it down) even in the sleep mode?
Thank you! It could be helpful also to have a feedback of the application on your phones, to see if it is just a problem of my phone or it is some behaviour of Android that prevents the correct execution of the service.
EDIT:
I've also tried to use a wake lock to keep the CPU awake (preventing the deep sleep) without success.

Categories

Resources