tag:blogger.com,1999:blog-8214401912480503366.post7417665220419303800..comments2023-08-10T13:35:15.093+02:00Comments on My life with Android :-): Monitoring sensors in the backgroundGabor Pallerhttp://www.blogger.com/profile/14307475522972458932noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8214401912480503366.post-27971557731857529062016-07-09T08:40:32.605+02:002016-07-09T08:40:32.605+02:00Hi I really appreciate all the great content you h...Hi I really appreciate all the great content you have here. I am glad I cam across it!<br /><a href="http://www.thefencefactorydirect.com/" rel="nofollow">install fence</a>James Smith Brownhttps://www.blogger.com/profile/01759309348258426296noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-51088112029019540872016-06-29T15:03:19.571+02:002016-06-29T15:03:19.571+02:00Valuable site, where did u come up with the inform...Valuable site, where did u come up with the information in this posting? I am pleased I discovered it though, ill be checking back soon to find out what new content pieces u have.<br /><a href="http://sparksfly.com/Site/jibo/" rel="nofollow">home robotE</a>Samsonhttps://www.blogger.com/profile/10741082259472351945noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-45167924411108201822015-10-01T09:32:12.997+02:002015-10-01T09:32:12.997+02:00Is there any free android app that collects locati...Is there any free android app that collects location data periodically and stores in csv format in the handset?পঞ্চনক্ষত্র পত্রিকাhttps://www.blogger.com/profile/16563496812483007773noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-34933977131449924092015-03-17T08:14:36.443+01:002015-03-17T08:14:36.443+01:00I truly get pleasure from while I read your blogs ...I truly get pleasure from while I read your blogs and its content. <a href="htom" rel="nofollow">httom</a>Sheamushttps://www.blogger.com/profile/05158555199153000678noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-38974544887221666392014-03-25T17:23:31.799+01:002014-03-25T17:23:31.799+01:00AS of 2014, Issue 3708 is still unfixed. The worka...AS of 2014, Issue 3708 is still unfixed. The workaround mentioned above by first poster only works on certain devices. It's not a universal fix.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-67939762114779052662012-07-26T15:53:02.101+02:002012-07-26T15:53:02.101+02:00great post!
quick question: what does the numbers...great post!<br /><br />quick question: what does the numbers on the left column of the capture.csv represent?<br /><br />another if i may: the sampling frequency, does it varies during the measurement? or we can assume that the value 17hz (in UI mode) is constant throughout the measurement?blazivichttps://www.blogger.com/profile/17912714283961166550noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-21488952836910312072010-06-15T07:08:29.273+02:002010-06-15T07:08:29.273+02:00I know this is not a problem on the myTouch 3G bec...I know this is not a problem on the myTouch 3G because I have killed battery's that way with older versions of Smart Lock.<br />I know register my Sensors with ACTION_SCREEN_ON.<br />I had reports that Nexus One users had the same battery draining problem, but I recently upgraded myTouch 3G to 2.1 (cyanogenMod) so I'll test out the sensor responsiveness with the screen off and get back to you.David Shellabargerhttp://www.goldfishview.comnoreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-62056071695391732902010-05-23T23:51:02.355+02:002010-05-23T23:51:02.355+02:00For what it's worth, I just installed the Froy...For what it's worth, I just installed the Froyo FRF50 build that has been kicking around on the internets for the last few days. On my Nexus One, it now seems that the sensors remain on when the screen is locked (ie., off). I've bitched about this a bunch on the Android Developers mailing list, and I'm hoping that they have taken the bait, and at least in the next update they will allow sensors to work once again when the screen is locked. <br /><br />It's also possible that this leaked build that I'm running is not what will eventually be released, and they'll go and disable the sensors again and piss of a whole bunch of developers... time will tell...Jordanhttps://www.blogger.com/profile/04576430411330696755noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-11303937640731842232010-05-06T16:46:38.355+02:002010-05-06T16:46:38.355+02:00Calle, I don't know more than what is explaine...Calle, I don't know more than what is explained by kosiakk here in the comments. According to him, it is a fault and simple partial wake lock should be enough to keep the sensors running. I have 2.1 on my N1 and the problem is present, loud and clear.<br /><br />The solution presented here is a bad hack but I am not aware of anything better at this moment. :-/Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-62874254115468261392010-05-06T14:12:37.617+02:002010-05-06T14:12:37.617+02:00Very interesting blogpost Gabor. I am actually wor...Very interesting blogpost Gabor. I am actually working with a similar task and have a question about background monitoring. I perform tests with a HTC Desire which behave very similar as the N1. Have you heard anything on how this matter has changed in the 2.1 version? Again, thanks for very interesting reading on your blog.Callehttps://www.blogger.com/profile/16952384037563675599noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-58416063536667330502010-04-23T14:42:17.250+02:002010-04-23T14:42:17.250+02:00Could you elaborate about this one? :-)
"Gran...Could you elaborate about this one? :-)<br />"Granular privileged intents will be difficult to manage in the community but are inevitable."Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-62107077519394429082010-04-23T12:54:24.634+02:002010-04-23T12:54:24.634+02:00kosiakk, would partial wake lock be enough? Becaus...kosiakk, would partial wake lock be enough? Because it does not help if you need to turn on the screen just to be able to receive sensor events.Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-15311229465201608392010-04-23T12:23:39.902+02:002010-04-23T12:23:39.902+02:00Gabor, nope.
I talked to one of Android managers ...Gabor, nope.<br /><br />I talked to one of Android managers directly, Reto Meier, and he confirmed that this is threated as a bug. "If you hold wake lock - you should receive sensor events" and promised that the fix is already there, but delivery depends on cellular providers, as usual.<br /><br />Another question is who and why added this 'bug'. I agree that this might be the part of power-saving effort. But we will newer know for sure =)<br /><br />There's an permission for accessing wake lock - Prevent phone from sleeping. <br /><br />No nothing should be changed, but the bug itself.kosiakkhttps://www.blogger.com/profile/00934647239799425980noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-60105028192265636572010-04-23T12:15:01.803+02:002010-04-23T12:15:01.803+02:00On a related hardware sleeping note, upon waking f...On a related hardware sleeping note, upon waking from sleep, something to be aware of is that is that the radio hardware may be turned off, connecting to network hubs and allocating IPs might take a little time and so a connection is active without an actual internet connection. Granular privileged intents will be difficult to manage in the community but are inevitable.Kevin McDonaghhttps://www.blogger.com/profile/01373881288582288214noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-37402828973932426102010-04-23T10:13:04.220+02:002010-04-23T10:13:04.220+02:00kosiakk, my understanding is that it is not a bug,...kosiakk, my understanding is that it is not a bug, it is an intentional decision from Google's part to protect users against power-hungry background applications. This, however. goes against the Android philosophy (everything is possible if the user is aware of it). <br /><br />Creating appropriate permissions or more sophisticated power management framework where apps could declare how power-hungry they are and let the users decide would be a better approach.Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-46541966221773611552010-04-23T09:29:06.302+02:002010-04-23T09:29:06.302+02:00There is known firmare bug describing this problem...There is known firmare bug describing this problem:<br />http://code.google.com/p/android/issues/detail?id=3708<br /><br />More information on<br /><br />http://www.smart-alarm-clock.com/supported-phoneskosiakkhttps://www.blogger.com/profile/00934647239799425980noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-62109962707753377042010-04-23T06:18:09.006+02:002010-04-23T06:18:09.006+02:00i am very much convinced that the problem is belo...i am very much convinced that the problem is below the android framework. i suspect the kernel power driver. is the kernel also upgraded during the update process?Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-44478900053718032332010-04-22T22:21:10.143+02:002010-04-22T22:21:10.143+02:00I haven't tried it since I was upgraded to 2.1...I haven't tried it since I was upgraded to 2.1 on my Droid, so maybe it's an OS version difference. From what I saw, Google developers acknowledge that this is a problem that shouldn't exist, so I'd hope it didn't get worse going into 2.1.<br /><br />I'll re-try my own app and see how it does on my upgraded Droid.Matthew Bhttps://www.blogger.com/profile/05403807212846496417noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-69819130441142146192010-04-22T22:15:16.060+02:002010-04-22T22:15:16.060+02:00sorry, mathew, i tried it on the nexus and re-regi...sorry, mathew, i tried it on the nexus and re-registration does not work.Gabor Pallerhttps://www.blogger.com/profile/14307475522972458932noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-13118532768144344052010-04-22T21:42:11.419+02:002010-04-22T21:42:11.419+02:00It's still an annoying hack, but you can get b...It's still an annoying hack, but you can get by with a PARTIAL_WAKE_LOCK. At least for the accelerometer and for my Android 2.0-2.01 device (Motorola Droid).<br /><br />You need to register for the ACTION_SCREEN_OFF event and then when that fires unregister your sensor listener and then re-register it. The screen stays off, but the monitoring continues.<br /><br /> protected BroadcastReceiver mReceiver = new BroadcastReceiver() {<br /> @Override<br /> public void onReceive(Context context, Intent intent) {<br /> if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {<br />sensorManager.unregisterListener(sensorEventListener);<br /> sensorManager.registerListener(sensorEventListener, sensorAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);<br /> }<br /> }<br /> };<br /><br />Good luck with this work-around!Matthew Bhttps://www.blogger.com/profile/05403807212846496417noreply@blogger.com