Documentos de Académico
Documentos de Profesional
Documentos de Cultura
python
Pequeabiografia@SankoSK
Autodidcta,amantedelsoftwarelibre,constanteaprendizsobre
programacinyseguridadinformticaymiembrode
@GrampusTeam.
Echaleunojoanuestrosproyectosenlosrepositoriosdebitbucket::
https://bitbucket.org/grampusteam/
NDICE:
QeesAndroid?(Porsivivesenunacueva)
DesarrollaraplicacionesenPython?Enserio?
SL4A(ScriptingLayerforAndroid)
Cmofuncionayqunospermite
PrimervistazoalaAPI
Entornosparaundesarrollocmodo:
ADByemuladorandroid
Distribuirnuestrosscriptsalpblico:
GenerarBarcode
Empaquetandoen.apk
Otrasformasdedesarrollo,kivyframework
QuesAndroid?
AndroidesunsistemaoperativobasadoenGNU/Linuxel
cualestapresenteenlamayoriadeterminalesdelmercado.
EnsuinteriorestaescritoenJava,XMLyC/C++(elncleo)
Entresuscaractersticasprincipalescuentacon:
Navegadorintegradobasadoenlatecnologiawebkit
AlmacenalosdatosenbasesdedatosSQLite
SusgrficosestanbasadosenOpenGL
Soportamultimediaengeneral(imgenes,videosyaudio)
4
DesarrollaraplicacionesenPython,Enserio?
?
5
SL4A(ScriptingLayerforAndroid)
Permitealosdesarrolladoreseditar,ejecutarscriptseinteractuarcon
intrpretesenlosdispositivosmviles.
EsposibleaccederamuchasdelasAPI'sdelsistemaoperativode
formacmoda.
SL4Aesopensource,sedistribuyebajolicenciaApache2.0ysoporta
otroslenguajesapartedepython:Beanshell,JRuby,Lua,PerlyRhino.
APIReference:
http://code.google.com/p/androidscripting/wiki/ApiReference
6
SL4Aysuintrprete
BarcodeyenlaceparaSL4A
http://androidscripting.googlecode.c
om/files/sl4a_r4.apk
Barcodeyenlaceparael
intrprete
http://androidscripting.googlecode.
com/files/PythonForAndroid_r4.apk
Entornosparaundesarrollocmodo
ADB:
Herramientaquevienejunto
conelSDKdeandroidyque
nospermiteaccedery,porlo
tanto,controlarundispositivo
androiddesdeunaPC.
EmuladorAndroid:
Conesteemuladorse
carganycreanlosAVD
(AndroidVirtualDevice),en
losqueseespecificael
hardwareylaversindel
sistemaoperativo
http://developer.android.com/sdk/index.html,
EnlaceparadescargarelAndroidSDKquenosproporcionaambas
herramientas
Distribuirnuestrosscriptsalpblico
Generandounbarcode:
Estemtodosirvetantoparadesarrollarmscmodamentecomo
paradistribuirtuscriptaunpblicolimitado(Desarrolladores)
GeneradorQRonline:http://zxing.appspot.com/generator/
Esteesunbuenmtodosiempreycuandotupblicosededique
tambienalaprogramacin.
9
Generadordebarcode(QR)
10
Escanearbarcode
AbrirSL4A>>
Opciones>>
Add>>
ScanBarcode>>
Elscriptseaadiraal
directorio<Scripts>
11
Empaquetandoen.apk
Esteprocesoestaaunenunafaseexperimental,porloquela
distribucindeaplicacionesaunmercadoesmuylimitadapor
elmomento.
Requiereeclipseparaelempaquetamiento.
Descargareltemplate:
https://github.com/damonkohler/sl4a/raw/master/android/script_
for_android_template.zip
12
Window>>
Preferences>>
BuildPath>>
ClasspathVariable
>>
ClickenNew>>
Indicaslarutadel
SDK
ClickenOK
13
ClickenExistingProjects...
>>
Clickenfinish...
14
Porltimo:
File>>Export>>
ExportAndroidApp>>
ClickenNext>>
Seleccionaselproyectoysi
eresafortunadoynotienes
errores,tendrastu.apklisto
paracorrer
15
Otrasformasdedesarrollo,kivy
Kivyesunframework/toolkitconncleopythonquenospermite
desarrollaraplicacionesmultitouchparadistintasplataformas
(iOS,Windows,Android...)
http://kivy.org/docs/gettingstarted/intro.html
Elprocesodeempaquetamientoparecesermscmodoy
eficaz.
16
Referencias
http://revista.python.org.ar/5/es/html/desarrollodeaplicacion
esmovilesparaandroidconpython.html
http://code.google.com/p/androidscripting/
http://code.google.com/p/android
python27/wiki/TutorialHowToInstallAndroidSDKAndEclipse
(MUYTILPARAELPROCESODEPACKAGING)
http://kivy.org/docs/gettingstarted/intro.html
17
FINDELAPRESENTACIN
FINDELAPRESENTACIN,AUNQUE
NODELAPYCON,DISFRUTADQUELA
CONESCORTA!
18