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