Skip to content

Instantly share code, notes, and snippets.

@johtso
Created January 19, 2014 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johtso/8508577 to your computer and use it in GitHub Desktop.
Save johtso/8508577 to your computer and use it in GitHub Desktop.
from kivy.app import App
from kivy.uix.button import Button
from android import activity
__version__ = '0.0.1'
class MyApp(App):
def __init__(self, *args, **kwargs):
super(MyApp, self).__init__(*args, **kwargs)
activity.bind(on_new_intent=self.on_intent)
def on_intent(self, intent):
print 'an intent:', intent
def build(self):
return Button(text='Hello World')
if __name__ == '__main__':
MyApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment