Page 1 of 1

graphic on the notification panel

Posted: Tue Feb 11, 2014 2:30 pm
by Luke100000
I want a program that can show me the batery in percent, but there are 3 problems:
1.) How I can put this program in the autostart?
2.) When I exit love, the program stops, but it have to run!
3.) How I can draw a graphic on the notification panel? There should be a little image with the battery left, ...
Thanks! :)

Re: graphic on the notification panel

Posted: Tue Feb 11, 2014 9:50 pm
by Ranguna259
https://play.google.com/store/apps/deta ... inch.pearl
This forum should only be for love-related topics ..

Re: graphic on the notification panel

Posted: Wed Feb 12, 2014 5:34 am
by Davidobot
Ranguna259 wrote:https://play.google.com/store/apps/deta ... inch.pearl
This forum should only be for love-related topics ..
I'm pretty sure he's asking about the android system.

Re: graphic on the notification panel

Posted: Wed Feb 12, 2014 2:51 pm
by Luke100000
Ranguna259 wrote:https://play.google.com/store/apps/deta ... inch.pearl
This forum should only be for love-related topics ..
No, I don't want a app, I want to learn how I can do something like that. (And it's a question about löve-android)

Re: graphic on the notification panel

Posted: Wed Feb 12, 2014 5:46 pm
by fysx
Love-android cannot do anything like this. It is about getting LÖVE to android, i.e. the API that is documented in the wiki.

For what you want to do you would probably have to use a Service for this (see http://developer.android.com/reference/ ... rvice.html for details). It is extremely unlikely that love-android would ever need something like this.

Re: graphic on the notification panel

Posted: Wed Feb 12, 2014 8:51 pm
by Ranguna259
Misunderstood the post then
I want a program that can show ..
I thought you meant app.

Checking battery percentage would be a cool feature for löve android but it isn't realy necessary, and pushes ( draw a graphic on the notification panel ) that's a total no, at least for me. (people hate pushes)

Re: graphic on the notification panel

Posted: Wed Feb 12, 2014 9:05 pm
by slime
Ranguna259 wrote:Checking battery percentage would be a cool feature for löve android but it isn't realy necessary
It's a feature of LÖVE already: [wiki]love.system.getPowerInfo[/wiki]. It should work on Android too. :)

Re: graphic on the notification panel

Posted: Fri Feb 14, 2014 5:39 pm
by Ranguna259
slime wrote:
Ranguna259 wrote:Checking battery percentage would be a cool feature for löve android but it isn't realy necessary
It's a feature of LÖVE already: [wiki]love.system.getPowerInfo[/wiki]. It should work on Android too. :)
[wiki]love.system.getPowerInfo[/wiki] Ahh god that's it, I knew there was one x)

Re: graphic on the notification panel

Posted: Mon Feb 17, 2014 3:20 pm
by Luke100000
slime wrote:
Ranguna259 wrote:Checking battery percentage would be a cool feature for löve android but it isn't realy necessary
It's a feature of LÖVE already: [wiki]love.system.getPowerInfo[/wiki]. It should work on Android too. :)
Yes, this I've tested already, it works. But I want that I can see the percent of the battery on the panel.