Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android.Android() on QPython error

I'm running SL4A Python 2.6.2 interpreter. This code works without problem:

import android
droid = android.Android()

But when I'm running QPython 2.7.2 interpreter on the same machine, the same code gives me error:

AttributeError: 'module' object has no attribute 'Android'
like image 310
Damian Melniczuk Avatar asked Dec 31 '13 15:12

Damian Melniczuk


1 Answers

import androidhelper instead.

import androidhelper
droid = androidhelper.Android()
like image 111
kyle k Avatar answered Nov 10 '22 17:11

kyle k