Wednesday, 31 March 2010

My First Android App - Quick Vibrate

Not sure if it deserves the title of an "app" per se but to be honest I've seen worse out there, so here goes.

Basically very similar to the vibrate mode by force app by kaa that's already on the market. The only problem with this app is I can't get out of vibrate mode using the slider on the lock screen. (at least not on my Nexus One anyway). So while getting into vibrate mode is easy, getiing out is a b#&ch because I have to hold down the power button until I get that pop up menu or I have to press the volume button on the side until I get out of vibrate mode which really is hardly elegant.

Anyhow, my code seems to be working so I just have to hook it up to a service and it'll be good to go. For some reason Android won't allow receivers to catch the android.media.AudioManager.RINGER_MODE_CHANGED_ACTION intent unless it's exceplicity registered via Context.registerReceiver().