12/04/2009, 04:48 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 6 Times in 6 Posts
|
It seems Classic does not properly emulate the API in Palm OS to retrieve the battery level. In my apps I call:
SysBatteryInfo( false, NULL, NULL, NULL, NULL, NULL, &percent ) to retrieve the current battery level and display it in my app. When run under Classic, it always returns 100%. Is there another way I can get the true battery level (from within a Palm OS app, not using webOS calls)? I realize on the Pre you get the battery icon on the top row, so if I can't get the true percentage I'll just have to hide my value when running under Classic. |
12/07/2009, 04:38 AM
|
#2 (permalink) |
|
webOS Developer
![]() Join Date: Jul 2009
Posts: 350
Likes Received: 0
Thanks: 162
Thanked 70 Times in 43 Posts
|
Check the Classic Compatibility Guide.pdf within Certification Kit http://www.motionapps.com/classic/fi...icationKit.zip
It should be of assistance with things like this. |
12/07/2009, 05:18 AM
|
#3 (permalink) | |
|
Member
![]() Join Date: Jul 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 6 Times in 6 Posts
|
Quote:
I know the battery level is readily available under webOS, so I don't know why Classic couldn't support at least the percent level value from this API. |
|
12/07/2009, 05:37 AM
|
#4 (permalink) | |
|
webOS Developer
![]() Join Date: Jul 2009
Posts: 350
Likes Received: 0
Thanks: 162
Thanked 70 Times in 43 Posts
|
Quote:
|
|
12/07/2009, 06:08 AM
|
#5 (permalink) | |
|
Member
![]() Join Date: Jul 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 6 Times in 6 Posts
|
Quote:
|
|
12/07/2009, 06:25 AM
|
#6 (permalink) | |
|
webOS Developer
![]() Join Date: Jul 2009
Posts: 350
Likes Received: 0
Thanks: 162
Thanked 70 Times in 43 Posts
|
Quote:
noted! |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



