Created
January 19, 2014 18:03
-
-
Save johtso/8508577 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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