5

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'
Damian Melniczuk
  • 393
  • 6
  • 18

1 Answers1

6

import androidhelper instead.

import androidhelper
droid = androidhelper.Android()
kyle k
  • 5,134
  • 10
  • 31
  • 45