Apress Access

Pro Android Python with SL4A

By Paul Ferrill

  • eBook Price: $34.99
Buy eBook Buy Print Book
Android programming is now accessible to all developers! Whether you write your code in Python, Lua, or even just Beanshell, Pro Android Python with SL4A will teach you to write fully-functional non-Java apps for Android-based devices.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-3569-9
  • 296 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: July 10, 2011
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Android Recipes, Fifth Edition
  • Go Recipes
  • Python Recipes Handbook
  • Lean Python
  • MVVM in Delphi
  • Appium Recipes
Full Description

Pro Android Python with SL4A is for programmers and hobbyists who want to write apps for Android devices without having to learn Java first. Paul Ferrill leads you from installing the Scripting Layer for Android (SL4A) to writing small scripts, to more complicated and interesting projects, and finally to uploading and packaging your programs to an Android device.

Android runs scripts in many scripting languages, but Python, Lua, and Beanshell are particularly popular. Most programmers know more than one programming language, so that they have the best tool for whatever task they want to accomplish. Pro Android Python with SL4A explores the world of Android scripting by introducing you to the most important open-source programming languages that are available on Android-based hardware.

Pro Android Python with SL4A starts by exploring the Android software development kit and then shows you how to set up an Eclipse-based Android development environment. You then approach the world of Android programming by using Beanshell, which runs on the Dalvik, and learning how to write small programs to administer an Android device.

Next, discover how Lua, a lightweight language perfectly suited for scripting on smaller devices, can work with Android. Lua can be used for small but important tasks, like SMS encryption and synchronizing photos with flickr.

Last, but certainly not least, you will discover the world of Python scripting for SL4A, and the power contained within the full range of Python modules that can combine with the Android SDK. You'll learn to write small location-aware apps to get you started, but by the end of this book, you'll find yourself writing fully GUI-fied applications running on the Android desktop!

Pro Android Python with SL4A is rounded out with a chapter on distributing and packaging scripts, a skill that you'll find very useful as you reach out to a wider audience with your programs.

What you’ll learn

  • Understand the SL4A
  • Explore the Android software development kit
  • Write scripts to administer an Android phone
  • Write and execute full Python and applications
  • Learn how to write simple apps using Facades
  • Explore the full Android development process, from development to packaging

Who this book is for

This is a book for beginning and intermediate Android developers, and a book for anyone coding in Python, Lua or exploring Beanshell.

Table of Contents

Table of Contents

  1. Introduction
  2. Getting Started with Android Scripting
  3. Navigating the Android SDK
  4. Developing Androids Scripts with Eclipse
  5. Exploring the Android API
  6. Background Scripting
  7. Python Utilities
  8. Python Dialog-Based GUIs
  9. Python for GUI with WebUI
  10. Packaging and Distributing Your Scripts
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. R Recipes


      View Book

    2. Beginning Haskell


      View Book

    3. Practical Clojure


      View Book