Your SlideShare is downloading. ×
  • Like
Cs3430 lecture 14
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Cs3430 lecture 14

  • 44 views
Published

 

Published in Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
44
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. CS 3430: Python and Perl Lecture 14 Department of Computer Science Utah State University
  • 2. Outline ● Android programming using Python
  • 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. Installation and setup
  • 5. Installation ● Prerequisites :  Full Java Development Kit (JDK).  Android software development kit (SDK).
  • 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. 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. Python for Android initial installation screen ● Clicking Install launches a process that downloads and unpacks several .zip files.
  • 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. Demo
  • 11. References ● http://www.ibm.com/developerworks/opensource/library/ mo-python-sl4a-1/index.html?ca=dat