1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #4430 invalid

sefyan

,bvn bvnvn
created an issue

== ## -- coding: utf-8 -- import logging # The multiprocessing package isn't # part of the ASE installation so # we must disable multiprocessing logging logging.logMultiprocessing = 0 import android import cherrypy class Root(object): def init(self): self.droid = android.Android() @cherrypy.expose def index(self): self.droid.vibrate() return "Hello from my phone" @cherrypy.expose def location(self): location = self.droid.getLastKnownLocation().result location = location.get('network', location.get('gps')) return "LAT: %s, LON: %s" % (location['latitude'], location['longitude']) def run(): cherrypy.config.update({'server.socket_host': '0.0.0.0'}) cherrypy.quickstart(Root(), '/') if name == 'main': run() ==