Slide 1

Slide 1 text

Django íà Android Àëåêñàíäð Øëåìèí 3-é Ìîñêîâñêèé Django Meetup

Slide 2

Slide 2 text

Android Android äëÿ ïðîãðàììèñòà, ýòî èíñòðóìåíò ïîçâîëÿþùèé ñîâåðøàòü òåëåôîííûå çâîíêè, ñëàòü SMS ñîîáùåíèÿ ïîëó÷àòü ïîêàçàíèÿ ñåíñîðîâ, GPS ïðîèçâîäèòü àóäèî è âèäåî çàïèñü ðàáîòàòü ñ ñðåäñòâàìè ñèíòåçà è ðàñïîçíàâàíèÿ ðå÷è Wi-Fi, Bluetooth áàçàìè äàííûõ ... ... Java ?

Slide 3

Slide 3 text

SL4A Scripting Layer for Android èíòåðôåéñ ê Android API RPC ñåðâåð èíòåðïðåòàòîðû ÿçûêîâ JavaScript (Rhino) Lua Brainfuck Tcl Perl ... Python !

Slide 4

Slide 4 text

Ïðèìåð Python êîäà import android droid = android . Android () r = droid . dialogGetInput ( ' Dialog Header ' , ' Dialog Message ' , ' Default text ' ) i f (not r . error ) and r . r e s u l t : droid . ttsSpeak ( r . r e s u l t ) e l i f droid . vibrate (32 ∗ 1000). error : droid . makeToast ( ' All the systems in norm ! ' )

Slide 5

Slide 5 text

Çàïóñê Django Îáîëî÷êà äëÿ manage.py runserver Ôîðìà äëÿ API ôóíêöèé

Slide 6

Slide 6 text

Áàçû äàííûõ SQLite nd_databases startapp database_path=... inspectdb database_path=... Django Admin

Slide 7

Slide 7 text

Èñïîëüçîâàíèå Django Admin

Slide 8

Slide 8 text

Ñïàñèáî! Django project for Android: https://github.com/b3b/jadro/