Who started to use SERVICES of v.1.2 ?
I'm beginning, mostly all is OK, but sometimes the emulator reboots while a service is running. The real device as well :-(.
Service now only uses GPS object and updates a notify icon text every second by a timer.
But reboot is not full - animated ANDROID text, like at booting is permanently on the display. Full restarting emulator or battery removing from the device is required for reset ((.
Erel, code has been emailed. Option "can install on ext. storage" is on.
Also found that after reboot the wallpaper setting is lost, maybe SD-card access problem ?
Any ideas, Erel ?
Service sometimes seems to make error and application is crashed even after start nothing changed more, just service's work.
An activity starts the service that inits GPS, TIMER, MEDIAPLAYER and some calculation subs, updating the notify ICON every second.
This is a bad thing to do. I f you need to check periodically you should use a timer to let the CPU enter the OS idle loop and invoke its power saving measures. Running a loop burns CPU cycles and wastes battery power unnecessarily. In an event driven environment like Basic4andoid (and Basic4ppc) the only reason to use DoEvents should be to keep the UI alive while doing a long running computation. Running a loop using it is not a good thing.