myGod0rz / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

seeing a java.lang.NullPointerException for several methods #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. If I run my script which is the following 

import android
droid=android.Android()
print droid.sensorsReadAccelerometer()

What is the expected output? What do you see instead?
Expected to see a list of floats

I see this instead:
java.lang.NullPointerException
Result(id=1, result=None, error=u'java.lang.NullPointerException')

What version of the product are you using? On what operating system?
Running sl4a version 4
Python for Android version 5
Android 2.2.1

Please provide any additional information below.

Original issue reported on code.google.com by asharri...@gmail.com on 13 Jul 2011 at 6:15

GoogleCodeExporter commented 8 years ago
Same problem I just had. I'm running SL4A r4 on Android 2.1

Installed Versions -- interpreter: 16, extras: 14, scripts: 13

Original comment by elimisteve on 13 Oct 2011 at 6:37

GoogleCodeExporter commented 8 years ago
This is an sl4a issue.
Please see http://code.google.com/p/android-scripting/

Original comment by rjmatthews62 on 3 Apr 2012 at 2:02