Py on Android
Upcoming SlideShare
Loading in...5
×
 

Py on Android

on

  • 1,733 views

Python on Android talk for django-cs group

Python on Android talk for django-cs group

Statistics

Views

Total Views
1,733
Views on SlideShare
1,685
Embed Views
48

Actions

Likes
0
Downloads
16
Comments
0

1 Embed 48

http://lanyrd.com 48

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Py on Android Py on Android Presentation Transcript

    • Python & Android @yedpodtrzitko
    • TL;DR
    • Dalvik apps Application frameworkDalvik VM Libs Linux kernel
    • Dalvik apps Application framework DalvikPython VM Libs(bin/lib) Linux kernel
    • Dalvik apps Application framework DalvikPython VM Libs(bin/lib) Linux kernel
    • Scripting Layer 4 Dalvik appsAndroid Application framework Dalvik Python VM Libs (bin/lib) Linux kernel
    • /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
    • /sdcard/SL4A/app.py Scripting Dalvik apps Layer 4 Android Application framework RPC Dalvik Python VM Libs (bin/lib) Linux kernel
    • Scripting PySide Layer 4 Dalvik apps LauncherAndroid Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
    • 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
    • /sdcard/Scripting main.py Layer 4 Dalvik appsAndroid PySide Launcher Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
    • Scripting Kivy PySide Layer 4 Dalvik apps Launcher LauncherAndroid Application framework PySide DalvikPython VM Libs(bin/lib) QT Linux kernel
    • 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
    • /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
    • 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
    • EOFSources:http://kivy.orghttp://thp.io/2011/pyside-android/https://code.google.com/p/android-scripting/ @yedpodtrzitko