graphic on the notification panel

A project to port LÖVE to Android handhelds
Locked
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

graphic on the notification panel

Post 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! :)
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: graphic on the notification panel

Post by Ranguna259 »

https://play.google.com/store/apps/deta ... inch.pearl
This forum should only be for love-related topics ..
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: graphic on the notification panel

Post 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.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: graphic on the notification panel

Post 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)
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: graphic on the notification panel

Post 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.
Bird thing: @fysxdotorg Blog thing: fysx.org
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: graphic on the notification panel

Post 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)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: graphic on the notification panel

Post 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. :)
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: graphic on the notification panel

Post 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)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: graphic on the notification panel

Post 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.
Locked

Who is online

Users browsing this forum: No registered users and 6 guests