How can you, from code, set the ringtone to the maximum?
You might be able to do that via Activity Starter, but there are differences between devices in terms of how sounds are managed. So, slim chance perhaps. Try MODIFY_AUDIO_SETTINGS in Activity Starter.