Guest Timmmm Posted January 4, 2010 Report Posted January 4, 2010 Aha, fixed it. I had just not added permission to use wakelocks. Source coming soon, (let me just clean it up & document it a bit). New version attached to the initial post.
Guest David Horvath Posted January 5, 2010 Report Posted January 5, 2010 Aha, fixed it. I had just not added permission to use wakelocks. Source coming soon, (let me just clean it up & document it a bit). New version attached to the initial post. For some reason it locks up for me. Is there anything what needs to be done except the chmod?
Guest Timmmm Posted January 5, 2010 Report Posted January 5, 2010 Hmm strange. Well, if you have a task/file manager that can look at running services (e.g. ASTRO), and there is one called Pulse Lights, then it should be working.
Guest Timmmm Posted January 9, 2010 Report Posted January 9, 2010 Ok, I have found out why it was crashing, and although it was a bug it was totally *not my fault*. Rather, it is a result of the completely s*** documentation of the Android SDK. It is truly dire. The app uses a thing called a 'wakelock' to keep the CPU awake while flashing the lights. When the flashing stops it releases the lock so the CPU can go to sleep, however for whatever reason it sometimes did this twice, without locking it inbetween. Apparently this is a good enough reason for Android to KILL YOUR APP. Even though it doesn't mention this AT ALL in the documentation: http://developer.android.com/reference/and....html#release() That page contains more examples of the absent documentation - isHeld() has no documentation (although it is pretty clear what it does). But what the hell does setReferenceCounted() do? The docs say it "Sets whether the wakelock is ref counted". Wow thanks, that has really informed me more than the method name itself. Useless. Anyway, I've fixed it and it now really works . New version attached here (sorry I forgot to change the version number so you might have to uninstall the old one first). -Angry TimPulseLights1.4.apk.zip
Guest roomtek Posted January 9, 2010 Report Posted January 9, 2010 hello, good work, thanks... i'll try it myself.
Guest giorgitus Posted January 21, 2010 Report Posted January 21, 2010 Is it possible to make it flashing for missing call or for other notification?
Guest chris9181 Posted January 28, 2010 Report Posted January 28, 2010 force close on boot for me Am I missing something? Why do we need the lights to flash when a text arrives when the screen/text alert box lights up anyway?
Guest Timmmm Posted January 28, 2010 Report Posted January 28, 2010 Is it possible to make it flashing for missing call or for other notification? Yep, but I'm a bit fed up with the stupid android API. I'm going to post the source code and then maybe someone can add it. Same goes for the force-close and the fact that it *still* doesn't seem to work properly on my phone. Reasons the Android API is crap: * It's Java. 'nuff said. * The documentation is s***. I mean *really* s***. s*** as in the code explicitly says some things won't work, but the documentation says they will. * The application model is insanely complicated. * You never know which of the possibly many threads your code is running in, and whether it can be long lived, modify the UI and so on. * Stupid things like this: http://developer.android.com/intl/de/resou...mory-leaks.html * Not the API, but Eclipse is a big pile of excrement. Slow, fat, and its UI resembles the antithesis of logic. </rant>
Guest giorgitus Posted January 28, 2010 Report Posted January 28, 2010 Yep, but I'm a bit fed up with the stupid android API. I'm going to post the source code and then maybe someone can add it. Same goes for the force-close and the fact that it *still* doesn't seem to work properly on my phone. Reasons the Android API is crap: * It's Java. 'nuff said. * The documentation is s***. I mean *really* s***. s*** as in the code explicitly says some things won't work, but the documentation says they will. * The application model is insanely complicated. * You never know which of the possibly many threads your code is running in, and whether it can be long lived, modify the UI and so on. * Stupid things like this: http://developer.android.com/intl/de/resou...mory-leaks.html * Not the API, but Eclipse is a big pile of excrement. Slow, fat, and its UI resembles the antithesis of logic. </rant> yes in these day i'm looking some source code for android...and it really s***...if you can post the source code maby some one can fix it...for me a led indicator will be very important...thank for your amazing work...
Guest Timmmm Posted January 28, 2010 Report Posted January 28, 2010 Source code attached. If anyone can fix the force close and make it actually work I would be very grateful. I hereby declare the licence to be GPL3.PulseLightsSource.zip
Guest giorgitus Posted February 9, 2010 Report Posted February 9, 2010 yes...is there someone that can check this code...this application is too important for me...there will be a way to "listen" if some application is making flash the trackball in a htc g2 and that signal making flashing our keypad...is this a stupid thing to say?
Guest twe Posted February 9, 2010 Report Posted February 9, 2010 This would be a good addition to have in the rom or as an addon....
Guest Timmmm Posted February 9, 2010 Report Posted February 9, 2010 The best way to fix this (and also handle other notifications) is to compile a replacement liblights. It may be a pain to get the source and compile it though. Some is in platform/hardware/msm7k but I'm pretty sure you need more... I might have a go at some point.
Guest david_dawkins Posted February 9, 2010 Report Posted February 9, 2010 (edited) Hi Tim, Just running your app in the debugger now, and one issue I've caught is "Receiver not registered", which might be the cause of one of the force closes. I'll see if I can fix it and send an update. Dave Update: Possible false alarm, app was exiting because it couldn't chmod the brightness device in the emulator. Edited February 9, 2010 by david_dawkins
Guest doivey Posted March 19, 2010 Report Posted March 19, 2010 I know a little old now, but does this work ? I guess you could all say, come on now dave try it and find out. But I am a bit weary of hurting my little pulse-y Ha, or I am being lazy. :)
Guest doivey Posted March 19, 2010 Report Posted March 19, 2010 Hmm well I have tried it, but am I being really silly, I cant see anything happening. Only testing by sending a text to myself (how sad) but there is no change. I am rooted and have allowed access... ?
Guest Timmmm Posted March 19, 2010 Report Posted March 19, 2010 Sorry I never got it to work properly and google are sending me a free nexus one so I probably won't have a pulse much longer.
Guest david_dawkins Posted March 19, 2010 Report Posted March 19, 2010 Sorry I never got it to work properly and google are sending me a free nexus one so I probably won't have a pulse much longer. OK, please explain the "google are sending me a free nexus one" bit.. where do I apply? :)
Guest xangma Posted March 19, 2010 Report Posted March 19, 2010 OK, please explain the "google are sending me a free nexus one" bit.. where do I apply? :) If you're a developer with an app that has over 5000 downloads and an average rating of over 3.5 ... you get one? I think? I have a great idea for an app. I'm just too lazy to make it =P
Guest doivey Posted March 19, 2010 Report Posted March 19, 2010 If you're a developer with an app that has over 5000 downloads and an average rating of over 3.5 ... you get one? I think? I have a great idea for an app. I'm just too lazy to make it =P Well you make it, and I will download it 5,000 times and we have a time share on the nexus one - how about that for a deal :)
Guest david_dawkins Posted March 19, 2010 Report Posted March 19, 2010 If you're a developer with an app that has over 5000 downloads and an average rating of over 3.5 ... you get one? I think? I have a great idea for an app. I'm just too lazy to make it =P Ah OK. I have an app in the making, I should get on and finish it...
Guest menno2 Posted May 9, 2010 Report Posted May 9, 2010 I would really love this app to work green for mail red for sms or any other combo, any progress?
Guest DanWilson Posted May 9, 2010 Report Posted May 9, 2010 I would really love this app to work green for mail red for sms or any other combo, any progress? It's actually already been suggested, and if I'm right, the lights are 2 LEDs but only seen but the phone as 1 light, if you get what I mean. So no independant control.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now