I want to generate a low battery alert programmatically, same as that will be generated when battery is low..can any one post a sample code how to do it..am aware of ACTION_BATTERY_LOW. but how to use it..? i want to generate a low battery alert even though battery is not low.
Share
ACTION_BATTERY_LOWis a system’s broadcast action, so you won’t be able to generate it for security reasons – at least not on a “regular” device