• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help modifying the sleep function..

ok so I am working on making an ice cream sandwich phone for dedicated car use. its running a gps app and a obd2 dashboard app. what I want it to do is stay awake as long as there is power to the usb port, and have it sleep say a few minutes after the car is shut off with no power to the usb port.. is this possible?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones