Automating your Android Phone with SL4A

Written By
PF
Paul Ferrill
Sep 2, 2010

“Back in Part 1 we learned how flexible and script-able Android
is, and installed the SL4A scripting layer. Today Paul Ferrill
teaches more about how to write custom Android scripts.

“In the first installment of this article we looked at getting
Google’s Scripting Layer for Android (SL4A) downloaded and
installed on your Android phone. We examined the basics of writing
scripts using Python and even included a short script to set a few
of the profile settings. This time we’ll take a look at some of the
sample scripts found on the SL4A website and talk about how you
might write a script of your own.

“The first thing you should do after installing the SL4A
application on your phone is to add a shortcut to the scripts
folder on one of the home screens. On the HTC EVO you can do this
by pressing on an empty space and hold until the Add to Home dialog
appears. From here you can add a Widget, App, Shortcut or Folder.
Selecting Folder presents a list of available folders and an option
to create a New Folder. Selecting the Scripts folder will add a
folder icon to the current home screen. Once that’s done, you’ll
have single-click access to any of the scripts stored on your SD
card in the sl4a/scripts directory.”

Complete
Story

PF

Paul Ferrill

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.