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.
Share
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.