QPython wrong android. Android()

QPython wrong android. Android() … here is a solution to the problem.

QPython wrong android. Android()

I’m running the SL4A Python 2.6.2 interpreter. This code works fine:

import android
droid = android. Android()

But when I run the QPython 2.7.2 interpreter on the same machine, the same code gives me an error :

AttributeError: 'module' object has no attribute 'Android'

Solution

Import Android Helper instead.

import androidhelper
droid = androidhelper. Android()

Related Problems and Solutions