Your SlideShare is downloading. ×
0
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Py on Android
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Py on Android

1,373

Published on

Python on Android talk for django-cs group

Python on Android talk for django-cs group

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,373
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Python & Android @yedpodtrzitko
  • 2. TL;DR
  • 3. Dalvik apps Application frameworkDalvik VM Libs Linux kernel
  • 4. Dalvik apps Application framework DalvikPython VM Libs(bin/lib) Linux kernel
  • 5. Dalvik apps Application framework DalvikPython VM Libs(bin/lib) Linux kernel
  • 6. Scripting Layer 4 Dalvik appsAndroid Application framework Dalvik Python VM Libs (bin/lib) Linux kernel
  • 7. /sdcard/ import androidSL4A/app.py Scripting Dalvik apps droid = android.Android() Layer 4 Android name = droid. getInput("Hi!", "Ur name?") Application framework RPC res = name.result droid.makeToast("Hi, Dalvik %s"%res) Python VM Libs (bin/lib) Linux kernel
  • 8. /sdcard/SL4A/app.py Scripting Dalvik apps Layer 4 Android Application framework RPC Dalvik Python VM Libs (bin/lib) Linux kernel
  • 9. Scripting PySide Layer 4 Dalvik apps LauncherAndroid Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
  • 10. from PySide.QtCore import * /sdcard/from PySide.QtGui import * Scripting main.py Layer 4 Dalvik appsapp = QApplication() Android PySidew = QLabel(Foo bar) Launcherw.show()app.exec_() Application framework PySide Dalvik Python VM Libs (bin/lib) QT Linux kernel
  • 11. /sdcard/Scripting main.py Layer 4 Dalvik appsAndroid PySide Launcher Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
  • 12. Scripting Kivy PySide Layer 4 Dalvik apps Launcher LauncherAndroid Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
  • 13. import android /sdcard/<app>/Scripting import kivy.uix.button as b main.py PySide Layer 4 from kivy.app import App Dalvik apps LauncherAndroid Kivy Launcher class TestApp(App): def build(self): return b.Button( Application frameworktext=foo bar) TestApp().run() PySide DalvikPython VM JNI(bin/lib) Libs QT Linux kernel
  • 14. /sdcard/<app>/Scripting main.py PySide Layer 4 Dalvik apps LauncherAndroid Kivy Launcher Application framework PySide DalvikPython VM JNI(bin/lib) Libs QT Linux kernel
  • 15. Framework Kivy, který vyrobili př i práci v ků lně a na podzimku žáci školy v Maleticích, je to nejmoderně jší, co pro Android máme. Co byste po mně chtě li!! 1
  • 16. EOFSources:http://kivy.orghttp://thp.io/2011/pyside-android/https://code.google.com/p/android-scripting/ @yedpodtrzitko

×