Skip to main content
  • Book
  • © 2011

Pro Android Python with SL4A

Writing Android Native Apps Using Python, Lua, and Beanshell

Apress

Authors:

  • First Book on Android SL4A Scripting
  • First title to talk about Python programming on the Android
  • First title to explain Lua scripting on the Android
  • Teaches script packaging and distribution
  • Introduces new techniques in Android development using Eclipse
  • Takes beanshell techniques for quick and dirty scripts seriously

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (10 chapters)

  1. Front Matter

    Pages i-xiv
  2. Introduction

    • Paul Ferrill
    Pages 1-26
  3. Getting Started

    • Paul Ferrill
    Pages 27-56
  4. Navigating the Android SDK

    • Paul Ferrill
    Pages 57-82
  5. Developing with Eclipse

    • Paul Ferrill
    Pages 83-111
  6. Exploring the Android API

    • Paul Ferrill
    Pages 113-138
  7. Background Scripting with Python

    • Paul Ferrill
    Pages 139-164
  8. Python Scripting Utilities

    • Paul Ferrill
    Pages 165-194
  9. Python Dialog Box-based GUIs

    • Paul Ferrill
    Pages 195-220
  10. Python GUIs with HTML

    • Paul Ferrill
    Pages 221-248
  11. Packaging and Distributing

    • Paul Ferrill
    Pages 249-271
  12. Back Matter

    Pages 273-282

About this book

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 wideraudience with your programs.

About the author

Paul Ferrill has been writing in the computer trade press for more than 20 years. He got his start writing networking reviews for PC Magazine on products like LANtastic and early versions of Novell Netware. Paul holds both bachelor's and master's degrees in electrical engineering, and has written software for more computer platforms and architectures than he can remember.

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access