sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

API call batteryGetLevel causes SL4A to crash/force close #434

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
HTC EVO 4G
What firmware version are you running on the device?
2.2
What steps will reproduce the problem?
1. Run the following script.

import android

droid = android.Android()
print droid.batteryGetLevel()

What is the expected output? What do you see instead?
I would expect some sort of return value. Instead I see an alert about SL4A 
stopping unexpectedly. I can only force close it.

What version of the product are you using? On what operating system?
SL4A r2.

Original issue reported on code.google.com by jwbia...@gmail.com on 16 Sep 2010 at 4:26

GoogleCodeExporter commented 9 years ago
Same as jwbiagio, except that my device is a Droid 2 (probably doesn't matter 
anyway) and that I'm using the patched version of SL4A_r2 from here: 
http://code.google.com/p/android-scripting/issues/detail?id=432

logcat is attached..

Original comment by seabre...@gmail.com on 30 Sep 2010 at 12:46

Attachments:

GoogleCodeExporter commented 9 years ago
Still not working with sl4a r3.

Original comment by jwbia...@gmail.com on 19 Oct 2010 at 3:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5dcccfe7c9.

Original comment by damonkoh...@gmail.com on 11 Nov 2010 at 9:59

GoogleCodeExporter commented 9 years ago
I'm having the same issue.  I'm working on the Xoom.

Original comment by derrek...@gmail.com on 30 May 2011 at 3:41

GoogleCodeExporter commented 9 years ago
Fixed in R4 and above.
However, you need to start batteryMonitoring to actually get battery data.

Original comment by rjmatthews62 on 30 May 2011 at 9:55