title: Reading GPS data from android device with Python
body: <p>I am trying to read data from an Android device with Python using Pydroid3.</p>
  
  <p>I first tried the following:</p>
  
  <pre><code>import android, time
  droid = android.Android()
  droid.startLocating(0, 0)
  event = droid.eventWait(1000).result
  if event['name'] == "location":
    print(event['data']['gps'])
  droid.stopLocating()
  </code></pre>
  
  <p>But this fails with:</p>
  
  <pre><code>Error importing module "android": this module is a part of Kivy
  You cannot use it from elsewhere
  </code></pre>
  
  <p>Would be cool, if I could use it...</p>
  
  <p>I then tried to use plyer to test an alternative:</p>
  
  <pre><code>from plyer import gps
  
  def print_locations(**kwargs):
      print('lat: {lat}, lon: {lon}'.format(**kwargs))
  
  gps.configure(on_location=print_locations)
  gps.start()
  # later
  gps.stop()
  </code></pre>
  
  <p>And that fails with:</p>
  
  <pre><code>ModuleNotFoundError: No module named 'plyer.platforms.linux.gps'
  </code></pre>
  
  <p>I couldn't really find any resources that had similar issues...
  Help is highly appreciated as I am a bit stuck here...</p>
  
  <p>Thanks!</p>