PHP for Android: prototyping Android apps in php
-
Upload
cesare-damico -
Category
Documents
-
view
10.891 -
download
1
Transcript of PHP for Android: prototyping Android apps in php
Folie 1
PHP for Android
Prototyping Android apps in php
Cesare D'[email protected]
Cesare D'Amicofreelance php dev
Hi, nice to meet you!
[email protected]: __ce (double underscore)http://cesaredami.co/
What happens adding...
+
Genetically modified php :)
We're going to talk about...
+ PFAf
SL4A
Android
Android
built on top of a linux kernel
native libc (Bionic): 0.5 * sizeof(GNU libC)
runtime (Dalvik VM) + system libs
application framework
Java!
How can we make php run on Android?
1. static compilation with Glibc (over 7MB)... fat!
2. linked to Bionic: smaller (~2MB), but tweaks needed
How can we make php run on Android?
3. SL4A to the rescue!
SL4A scripting layer for Android
Google project, led by Damon Kohler
Open Source
exposes Android API
quite active
SL4A: installation
As easy as:1) enable Unknown sources under Applications settings
2)
PHP for Android project
led by Ivn Mosquera, software engineer at Irontec (the people behind IronPython and other OS projects)
Open Source
Started in 2009
php-for-android on Google Groups
PFA: installation
The PFA apk just installs other components:php_rX.zip:php binary
php_scripts_rX.zipscripts and PFAf
php_extras_rX.zip
Android.php + php.ini
Everything's installed!
SL4A: how does it work?
Provides Android facades
Makes the Android API available through JSON RPC calls
PFA: let's try it
PFA: let's try it