Update: I had my app running for hours yesterday while charging, with the Desire kept cool by sitting on top of a small CPU-cooler-like fan. Noisy, but cool. When I switched off the fan, the Desire rebooted within 3 minutes.
Also, no reboots in flight mode. Bugger. On Aug 11, 1:55 pm, Per <p...@care2wear.com> wrote: > Oh dear. > > Though I'm sort of happy that I'm not to blame this time, this is > horrible. > > I tried a few experiments not involving my app, and sure enough, > loading the poor device a bit (music, youtube, navigation at the same > time) works fine off the charger, but inserting the charger invariably > reboots the thing within minutes. Sometimes it even reboots while > recovering... > > Turning off WiFi/Data has no effect. > Flight mode seems to help, but that's not really a good option :) > > I'll try cooling the device by a fan or something, just to confirm > that temperature really is the cause. > > The thread you pointed to also discussed Froyo as a possible (partial) > cause. > I tend to suspect the 2.1->2.2 update to worsen the problem, I don't > remember seeing this a year ago (when I was making a similar app). > > thanks, > Per > > On Aug 11, 10:54 am, Nico Balestra <nicobales...@gmail.com> wrote: > > > I think this is related to a known problem affecting the HTC Desire. > > > Apparently it happens when the CPU gets hot, which is very likely for > > intensive operations. > > See > > this:http://androidforums.com/desire-support-troubleshooting/78992-htc-des... > > > I had an HTC Desire and it was rebooting all the time as soon as I attached > > the phone to my USB cable and starting an application via Eclipse. The same > > was happening when I was browsing the web or playing Angry Birds :) > > > Eventually.. I've got a Samsung Galaxy S2!! > > > Hope this help, > > Nico > > > 2011/8/11 Per <p...@care2wear.com> > > > > Does anyone know of (reproducible) reasons for device reboot? > > > > My app-under-development will run for hours if the device is not > > > charging, but with USB connected it will reboot, usually within > > > minutes. No exceptions shown, just a reboot. > > > > The app has one activity, which (via a WakefulIntentService [from > > > CommonsWare]) sets up alarms that will trigger at different intervals > > > (4mins to half a day). The alarms are cancelled when the activity is > > > destroyed. > > > When an alarm goes off, a BroadcastReceiver starts a > > > WakefulIntentService, which pulls some data from a server and saves it > > > in a file. That service starts another service, which provides a cache > > > of the data in the file to the activity. The start of the cache > > > service is afaik the simplest way of providing a simple notification. > > > It is most likely already running, as it is bound by the activity. > > > > This could most likely be done smarter, but it seemed like a fair > > > compromise when I want the app to work offline, too. > > > > Does anyone know of an interaction between USB/charging and > > > wakelocks / alarms / services ? > > > Logcat does not provide much help. Seems that the log is cleared at > > > reboot. > > > Any hints for debugging this apart from logcat (will adb bugreport > > > provide more history than logcat?) > > > > Just for the record, I have seen the device (HTC Desire running 2.2) > > > reboot when it gets hot (hot environment, lots of voice/data traffic > > > while or just after charging), but it's running pretty cool in this > > > scenario. > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en