[Mini-app] batterywatch - G1 Apps and Games

Hi there,
i had often the problem that i was listening to music and suddenly my phone turned off,because the battery was empty. So i wrote a small app ,where you can set a threshold and set up notifications (sound, vibration, status bar). You can also get a notification, as soon as the phone is fully charged.
Actually, i made this app for me. But since i am done now, i dont have any motivation to make something new.
So maybe you guys have some suggestions etc.
PS: I am especially proud of the self painted icon

thank you for this

Related

[SOFTWARE] Notification LED FOUND!

Look what I just received on my RSS feed:
Translated from Italian
I'm studying it to see how it works, can someone help me?
Why don't you just link to the official thread? http://www.swedroid.se/forum/showthread.php?t=38703
I can tell you it's working!
/edit
Works like this:
When screen is off the app checks every 30 sec to see if there is any new incoming email, sms/mms, calls. If it's returned as true the lights of your touch buttons light up. It lights up every 10 sec for 3 hours. If the phone is not wakened withing that time, it stops.
The first time you have to press "start" to start the process. If you tick the "start service on boot", it's not necessarily to press start.
Test it with the "test" key.
You can also set the default value of the brightness of the buttons with this app
Think that's about what is important from that post.
Very nice, thanks for the hint.
I was watching the fact that is fulfilled by Log messages, is it normal?
Perfect Thnx a lot for the link.
Missed this feature since my change from Desire
Novek said:
Why don't you just link to the official thread? http://www.swedroid.se/forum/showthread.php?t=38703
I can tell you it's working!
/edit
Works like this:
When screen is off the app checks every 30 sec to see if there is any new incoming email, sms/mms, calls. If it's returned as true the lights of your touch buttons light up. It lights up every 10 sec for 3 hours. If the phone is not wakened withing that time, it stops.
The first time you have to press "start" to start the process. If you tick the "start service on boot", it's not necessarily to press start.
Test it with the "test" key.
You can also set the default value of the brightness of the buttons with this app
Think that's about what is important from that post.
Click to expand...
Click to collapse
checks every 30 sec? is it possible a battery drain issue or let the phone never sleep?
that was my thoughts too... Will check it out for a day and see.
Sent from my LG-P990 using XDA App
Wow, looks&works nice.. What about battery life impact?
I'm afraid it will drain terribly the battery... if someone can help me understand where is the code that controls the leds, I can try to set it up so that it's activated by notifications, instead of checking for them... we might need Paul's help here!!!
OK that's very nice and handy indeed, but i also wanna know about the battery drainage, on the otherhand using the app (or hidding menu) to reduce the output power of the leds you can conserve lot's of energy tho .
Yeah I'm not sure that's the way it's supposed to be done. While I am grateful for the dev of this app, I think the goal is to have these LEDS tied in to the Android Notification system itself, because any other way will be a drain on the battery.
Tegra2 is awesome because it takes up so little power in idle. If we have an app checking every 30s, the SoC is no longer idle, per say. If we increase the timer to let it idle, it's no longer a real notification system. Hence, this is probably not the way to go.
No I'm not sure where this is handled in Android though. If i'm not mistaken, a setting activated or not on the ROM, to tell the OS wether the phone has or not a LED for notifications. If so, we just need to rerout those acceses to the button LEDs. Then again, wtf do I know lol.
If anyone wants to point me in the right direction I'd love to look into that more closely (I dev C++, Java so should be able to work something out) Pm me.
There could be some push notification that goes to the notification bar, that may be used to also trig this software?
I guess it doesn‘t wake up the machine but runs as a background process.
Sent from my LG-P990 using XDA App
I've used it for a day now, fr6, 1200mhz overclock. After a lot of texting, and intense music playing I still have 30% battery. At the bottomline, I haven't noticed any impact on the battery life.
Sent from my LG-P990 using XDA App
I'm having a go at writing my own version that can do both brightness settings and notifications. So far I've caught up to Paul's app feature-wise, and will tackle notifications in a bit (hopefully in a more battery friendly way).
If I'm first done then I might put it on the market, but otherwise it's a great learning exercise for me!
Sent from my LG-P990
My fix is a 80$ liveview but I'm sure that's a little out of context.. still wish this phone came with an led notification. :/
Sent from my HTC Magic/Dream using XDA Premium App
thank you for the app,but there some problems with the app.the phone will reboot when you got some calls and messages.
Sent from my LG-P990 using XDA App
tiwiz said:
I'm afraid it will drain terribly the battery... if someone can help me understand where is the code that controls the leds, I can try to set it up so that it's activated by notifications, instead of checking for them... we might need Paul's help here!!!
Click to expand...
Click to collapse
Code:
echo 20 > /sys/devices/platform/star_touch_led/wled
20 is the brightness value i think.
I've used mine for 7 hours now, 50% left.
I've used wimp for music, wifi hotspot and xda/web. That's prof it's good enough for me...
Nice app! Just what I was looking for!

[Q] Faulty mute toggle?

Hi everyone
Re-posting this from the general section (posted on there by mistake, was still half asleep lol, sorry)
Just got the xperia z yesterday (after my previous lg 4x was stolen... grrr... may the thief get permanent bursting hemorroids...) and I noticed a weird thing.
The mute/vibrate/sound toggle in the notification bar does not seem to work, and the same goes for the one in the popup shown by pressing the power button for a couple seconds.
Details: the mute or vibrate icon appears on the notification bar, but if I check the volumes in settings, they're still all on, and if I receive a call or get a notification or whatever, the phone actually rings despite the supposedly muted state.
All this doesn't happen if I "manually" turn the volume off with the volume buttons or via settings: in that case the vibrate icon appears and the phone actually does not ring.
Has anyone experienced anything similar?
All good here dude. Hope you get it fixed. Have you tried turning phone off and on again? That usualy fixes small.glitches.
Sent from my C6603 using xda app-developers app
steve17harris said:
All good here dude. Hope you get it fixed. Have you tried turning phone off and on again? That usualy fixes small.glitches.
Click to expand...
Click to collapse
Yep, already tried that of course, as well as uninstalling the one widget I have that interacts with volumes, just to be sure it was not some weird conflict (and of course it wasn't)
Not a biggie actually, as I can turn it down manually or by said widget, but I hope I'll figure it out anyway if only for the sake of understanding the source of the issue
Yep I understand that. Annoys me when I cant get something working lile its ment to.
Sent from my C6603 using xda app-developers app
I have a problem with the toggle in the notification bar and the power off menu. System settings show me notifications and ringtones are off, but the phone still has audible, unmuted notification sounds. Really annoying.
robogo1982 said:
I have a problem with the toggle in the notification bar and the power off menu. System settings show me notifications and ringtones are off, but the phone still has audible, unmuted notification sounds. Really annoying.
Click to expand...
Click to collapse
Yep, that's the same exact issue I'm having
I guess we have to wait for a software update.
robogo1982 said:
I guess we have to wait for a software update.
Click to expand...
Click to collapse
I guess as much...
Actually, I could try a factory reset just to be sure, but I admit I'm kind of too lazy to set my stuff up again from scratch only to try and fix that small glitch
Vostradamus said:
I guess as much...
Actually, I could try a factory reset just to be sure, but I admit I'm kind of too lazy to set my stuff up again from scratch only to try and fix that small glitch
Click to expand...
Click to collapse
Well, I was thinking the same, but now that we got root... :laugh:
robogo1982 said:
Well, I was thinking the same, but now that we got root... :laugh:
Click to expand...
Click to collapse
Heard about it, but haven't read the whole thing yet (yep, still being lazy)
Jokes apart, I was planning to leave it 100% stock for at least a little while to see how the battery behaves without even the slightest piece of modding (got the phone only last friday, today has been the first real "field test" for the battery and so far I'm pretty positively impressed)
Well I have already removes/frozen a bucketload of apps happy bunny, I am. Now I only need to figure out which app does what so I don't kill something and make my phone less usable.
robogo1982 said:
Well I have already removes/frozen a bucketload of apps happy bunny, I am. Now I only need to figure out which app does what so I don't kill something and make my phone less usable.
Click to expand...
Click to collapse
lol I removed a few apps too, but luckily for me they were uninstallable without root or anything.
I also disabled a few more through the stock apps management, for the time being it's sufficient for my taste
Same irritating automatic toggling action going on
Vostradamus said:
Hi everyone
Re-posting this from the general section (posted on there by mistake, was still half asleep lol, sorry)
Just got the xperia z yesterday (after my previous lg 4x was stolen... grrr... may the thief get permanent bursting hemorroids...) and I noticed a weird thing.
The mute/vibrate/sound toggle in the notification bar does not seem to work, and the same goes for the one in the popup shown by pressing the power button for a couple seconds.
Details: the mute or vibrate icon appears on the notification bar, but if I check the volumes in settings, they're still all on, and if I receive a call or get a notification or whatever, the phone actually rings despite the supposedly muted state.
All this doesn't happen if I "manually" turn the volume off with the volume buttons or via settings: in that case the vibrate icon appears and the phone actually does not ring.
Has anyone experienced anything similar?
Click to expand...
Click to collapse
Yes, having the same problem as well with mine. But it has been the same problem since I had ICS on my Xperia Arc S, then Xperia V and now this when I use the toggle in the notification bar or any other toggle aside from toggling it manually via setting. Very irritating since it has never and probably will never be fixed due to the fact that it's a cross-model issue. Chances are, those who say they don't have this problem already has it but don't know it yet or will get it eventually. Sony needs to iron this out once and for all

Nexus 6P running CM13, Notification LED won't work correctly

Before I even get started, I know CM13 is outdated/discontinued/insecure. I'm aware, I'm stuck with it for a while.
I've been trying to get the notification LED on my phone to work the way I want. I had no problems doing this with Light Flow on my old Samsung GS4. Things were not so peachy until I was reminded Cyanogenmod has built in controls for the notification LED. I have everything set up just the way I want it, it demos just fine when I'm punching in the settings. The problem is it won't work reliably when I set my phone down.
With my GS4, if the screen was off and I had notifications, the LED blinked accordingly. My N6P doesn't do that. I've caught it blinking a few times throughout my day, and had friends send me notifications while it's sitting on my desk, so I know it works sometimes. But the LED won't stay that way forever, eventually it just decides my notifications aren't important enough to me and stops blinking.
I'm having a hard time really pinning down it's logic because it seems to just work when it wants to. I have a theory that the way the 6P is really aggressive about saving battery, whatever service controls the LED is being woken up when a new notification comes in and eventually being put back to sleep, but I simply don't know enough to say. While I'm at it, I don't think I have any way of assigning priority to the different notifications (a text message is more important than an email, for example), so my color code scheme might as well go out the window.
I don't know why google seems to hate the notification LED so much, every time I try to google the issue I just get tons of pages telling me how Google hid it away and you can turn it back on in the settings for AOSP. Obviously none of that is helpful, maybe someone here has an answer?
@FoxtrotZero: Wrong forum. This is the Nexus 6 forum. Your device is here.
GFDI, didn't even know there was another device called the Nexus 6. Thanks.

Can't hear YouTube notifications

I've checked everything I can think of, I've read all over this forum.
For the life of me I can't figure out how to hear Youtube notifications , they show up in my lock screen and status bar and even the count on the youtube icon but unlike every other device I have I can't figure out how to get the audio of the notification to be heard. I suspect it has something to do with battery/power management or Special access but I think I've done everything right.
I'm even thinking I screwed things up by using smart switch for the first time to move things over from my old phone, don't see how if audible youtube notifications were working before on my old phone but who knows.
Guys, I'm beat, other than this I've got the phone work the way I want and don't want to reset to factory if I don't have to.
Also, I'm not using any "notification" apps.
Any ideas?
Thanks

Notifications Disappearing on their own.

I'm sure its something everyone has experienced, they hear their phone go off and check and nothing is there.
It happens to me every now and then, but It feels like its happening more frequently. Today I left my phone in another room and herd it go off twice but when I went to go check it was cleared. I know I herd it for sure, it was my Metal Gear ! Sound as well as my Ring Doorbell Sound.
Is there some kind of Notification Logger? Even if they are cleared.
To be honest, I have never had any issue as you describe
I had something similar, but some notifications would disappear after about 5 minutes or so. I had to turn off app power monitor in order for my notifications to stay. Although, I never had an issue with them disappearing instantly. I know also weather updates can make sounds, so that can also possibly be it. At the time before I found out about the app power monitor problem, I had installed an app called notisave and it would save every notification I would receive. Hope this helps.
I had similar, i downloaded an app called Notification History and it would show them, it was one weird app that did it but i don't recall exactly why or how.
there is also a phone setting that says "show most recent notifications only" make sure that's not on
I once disabled google assist or whatever it's called and it helped. After a few updates I abled it again. Seems some of their updates does this.

Categories

Resources