03-20-2012 03:15 PM
I want to make an application to put the phone on vibrate at certain hours. Is it possible?
I got stuck, because I can't modify sound profiles programmatically.
03-21-2012 05:23 AM
03-21-2012 05:47 AM
03-21-2012 10:50 PM
Very good news that finally we can manipulate the profiles!!!.
I'm now looking at the API of 7.1. So, in order to change the profile to vibrate-only I would have to get the desired Profile using Profiles.getDeviceProfiles(), and then use the method Profile.setActive ()?
I would like to implement it before 7.1, I've made some code that uses event injection to change the profile, but does not work if the keypad is locked.
I need to change the active sould profile from a application that runs on background, and in that case the keypad would be locked. Do you have any ideas to work around this issue using event injection before 7.1?