Cs3430 lecture 14

171 views
121 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
171
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cs3430 lecture 14

  1. 1. CS 3430: Python and Perl Lecture 14 Department of Computer Science Utah State University
  2. 2. Outline ● Android programming using Python
  3. 3. Scripting Layer for Android (SL4A) ● A common misconception about developing for the Google Android platform is that you have to write your code in the Java language ● The truth is, you actually have a multitude of options through the Scripting Layer for Android (SL4A) project. ● SL4A provides a platform for several scripting languages, including Beanshell, Lua, Perl, Python, and Rhino.
  4. 4. Installation and setup
  5. 5. Installation ● Prerequisites :  Full Java Development Kit (JDK).  Android software development kit (SDK).
  6. 6. Install SL4A ● Installing SL4A on an Android device is similar to the process for any other Android application. You can scan the QR code on the main SL4A project site with your device to download the SL4A installation file
  7. 7. Install the Python interpreter ● In phone /emulator enter sl4a download in the browser's search box ● Clicking the PythonForAndroid_r4.apk link starts the download.
  8. 8. Python for Android initial installation screen ● Clicking Install launches a process that downloads and unpacks several .zip files.
  9. 9. Python for Android primary installation screen ● You should see three separate progress windows. The first shows the download, and then the extraction of the files onto the SD card. If everything works, an "Installation Successful" message appears.
  10. 10. Demo
  11. 11. References ● http://www.ibm.com/developerworks/opensource/library/ mo-python-sl4a-1/index.html?ca=dat

×