Skip to content

Instantly share code, notes, and snippets.

@johtso johtso/gist:8508577
Created Jan 19, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.