Posts tagged ‘flashnotify’

Tested FlashNotify on HTC Hero

I’ve had a few reports of nothing working on a number of phone models, so I’m attempting to grab as many phones as possible and test them. Currently, I’m certain that the HTC Magic and Hero devices work, and I’m actively seeking people with other phones that I can test properly.

Feel free to get in touch if you’ve got another phone and you don’t mind debugging things 🙂

Stonking start there

So the first version went out without the right security permissions. This may explain why so many people are listing it as not working… Solid testing performed, as you can tell.

Still, 1.1 up now, and we’ll see how we go.

FlashNotify on PC Browsable sites

Now available

FlashNotify is now out there in the market…Useful links:
From your phone…
And a donation app – £2
And another – £5
None of the online market lists seem to have caught up yet – links to follow for them.

Problems with Android’s WakeLock when on battery

For the sake of anyone else who may fall over this one at some point in the future…

I was trying to bring the phone out of sleep periodically using a Timer. That timer executes code that looks something like:

PowerManager pm = (PowerManager) this.ctx.getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, "FlashNotify");

This worked beautifully when plugged in via the USB debugger, but the moment I took the phone out of the cradle, everything stops. Blast.

It seems that when the phone drops into sleep mode when on battery mode, it enters a deep sleep state, where even the FULL_WAKE_LOCK can’t wake it up. The magic to prevent this – Before the phone makes it to the deep sleep state, grab a PARTIAL_WAKE_LOCK to keep it just about conscious. While this is potentially a little unfriendly on the battery, that’s kind of the point of this application, and we’re only going to do it for a little while.

(Vague conjecture – Maybe the OS is doing something akin to PowerManager.goToSleep to manage this – The API docs say that this overrides any wake locks, which seems a little heavy handed. Maybe that’s just wake locks which are currently active. I could dig around in the Android source, but I frankly can’t be bothered 🙂 )

This remedies the only major problem left with deploying this app now, and it’s currently running full time on my own phone. Just got to hook the settings screen up so that it works properly, and all should be ready to roll 🙂

Packaging properly

Still working on this, but (as ever) the little things like settings screens and packaging the app are taking more time than planned. Always the way, eh?

A first update

I’ve finally got my first Android app up and running, and it’s almost ready to make an appearance on the Android Market – It’ll be a few days yet, but I figured this site needed a pretty drastic overhaul if I was going to use it again as a development home.

Find the app details on the FlashNotify page – I’ll update here when it really gets going.">Entries (RSS) and Comments (RSS). Valid XHTML and CSS.
Powered by WordPress and Fluid Blue theme.