I’m new to android dev. I’ve to ask primitive details for which my apologies be accepted first. I intend to develop an android application / service which should let user enter time in hours format (say) and then turn off the bluetooth connection of mobile phone at that specified time. I want to first test application on emulator. I want to know 2 things. Firstly, whether its gona be an application? Or it be a service? Secondly, please help me how to go by this. Bundles of thanks in advance.
Share
Serviceis a component of an application, not a standalone entity.AlarmManagerto schedule an event in future. When it occurs yourBroadcastReceivershould get an intent and launch a service, which will turn off the wifi.