Im currently trying to get the location of my device via the androidHelper but I keep getting null pointer exceptions.
Sample Code:
while True: droid.startLocating() droid.eventWaitFor('location', int(9000)) location = droid.readLocation().result if len(location) > 0: droid.stopLocating() return location
The error also doesnt give a line number.
Im currently trying to get the location of my device via the androidHelper but I keep getting null pointer exceptions.
Sample Code:
while True: droid.startLocating() droid.eventWaitFor('location', int(9000)) location = droid.readLocation().result if len(location) > 0: droid.stopLocating() return locationThe error also doesnt give a line number.