I want to develop an application that has auto-power on when the device is off.
There is a way to set your device to automatic power on? like a scheduled task?
"I want to develop an application that has auto-power on when the device is off."
Answer: This is impossible. You can't run code on a device which is turned Off.
If it would be possible, every anti-theft App would have something like that to track the phone.
Related
Actually, i want to include a functionality in my android app that when phone is switched off due to low charging, then when i'll connect Power cable or charger to it, then it will booted up or Power on automatically without pressing Power button physically.
Can we make any service keep alive after device switched off ??
is it possible any how?? plz help by sharing your views & exp.
I have an app which runs in my company without user interaction. It is just a monitoring of current company processes. The devices are not portable, I am using android boxes with hdmi monitors. The devices are so configured that they never go in standby. I want that the android box goes standby on a certain time and wake up on a certain time without user interaction. Is this possible from my code? Or is there an app that will do this for me?
Best regards,
Peter
I have an app which is running on an android device which has no battery. It's just charging all the time and the app is running. But sometimes the device is not charging and logical to that the phone will turn off.
When it's charging again the device should start from itself and boot. The user shouldn't press the power button. That's the requirement.
Is this possible anyway?
Can I achieve this when I root the device?
Has anybody experiences with that case?
in short: No.
ADB is not running when the phone is powered off, and as #langerhans said, wake on alarm is proprietary
You could do a hardware solution where you hijack the battery pins to a power station or modified charger. (make sure you do not feed any power through usb at the same time)
It should be cheap and quite easy to build.
Generally, this is not possible. It is highly device dependant. Some devices allow alarms turning on the phone to ring as an alarm clock even if they are turned off. But this is a proprietary feature and therefore not easily accesible to custom applications.
I have basically the same problem running an Odroid device which luckily turns itself on after power loss, but if I shut it down manually, I can only turn back on with pulling the power.
The only thing I could think off would be an extra watchdog device, but I have no idea if something like that exists. Maybe you'd need to build it yourself.
I'm Developing an Android Application where it's constantly required to keep the App up an running at all time. with the phone connected to a power outlet at all time, Is it possible that if the phone's battery died to Auto-start up the app with no user intervention . *i.e to power up the phone automatically without hitting any power button and start up android since charger is connected. *
then start up my app with android.intent.action.BOOT_COMPLETED and RECEIVE_BOOT_COMPLETED permission
PS: I have tried android.intent.action.ACTION_POWER_CONNECTED but it only works if the phone is already powered up.
I have exactly same requirement as yours.
Can we plan a solution like this:
The Android device is always connected to charger's output.
Charger's power supply is connected to a custom made hardware device which controls power supply to charger.
This hardware device puts charger off until battery is getting low. i.e. 20% remaining.
Once battery is less than 20%, that device automatically switch on the charger.
The "custom made hardware" gets it input from android device itself via USB/WiFi/Bluetooth.
Just a thought. May not be practically possible.
No way doing it if you do not root your device and add reboot scripts to the programs running to show battery charging pictures when device is turned off and charging.for Samsung s2 here is an answer
Maybe you can make an additional app that waits for the BOOT_COMPLETED with its BroadcastReceiver and then check wether the power is connected and start as a new Intent your application?
Just a quick thought..
I have the same problem.
The solution that i will to implement:
1.- get out two(here is my doubt, ¿what two wires?, because i see three, i will use my multimeter for see continuity between wires when i push the button) wires from the power button phone.(when you push that button, it just connect two poles like a switch).
2.- When you have the two wires, so, we build a little circuit with a timer like a 555(integrated circuit). The purpose of the circuit will connect the two wires(from power button phone) by a 5 seconds period every 15minutes.
Obviously this circuit will be running always.
I want to developing an application which can but the mobile auto silent at a specific area, for example: i will but a bluetooth device in my company meeting room and that device name with: "a", i want my App. to set the mobile into silent mode when I enter to that meeting room, can I do that? how? can you please tell me how or tell me the keys of do that? thank you in advance.
Sure, this would be possible. Your best bet is to start at the Bluetooth interfaces page in the Android API documents. You'd probably want to have a service that would poll at some interval for available Bluetooth devices searching for the one you're looking for. If you find the device, use the AudioManager to set the ringer mode.
The biggest problem is the effect on battery life. A Bluetooth discovery takes anywhere up to 12 seconds to perform. If you do that every minute your battery will be dead in no time. So you'll have to determine if that's something your users will want.