[Chicago] using-python-on-android

Ben Rousch brousch at gmail.com
Wed Oct 3 00:59:44 CEST 2012

  * Nov 27 will work for me
  * I could talk about many Python and Android topics
  * SL4A and android-python27 are probably the best for me to talk about

November 27 would work for me. I can drive (if there's a place to
park), take the Amtrak, or we have this new bus service to/from
Chicago called MegaBus that's supposed to be spiffy.

I'll summarize what I've been doing with Python and Android, and then
I'll let you decide if your members would find it interesting.

My PyOhio talk [1] was targeted at Python developers and touched on a
few topics:
  * Using SL4A/Py4A [2] to explore your Android device's capabilities
  * Installing a full Python development environment (python, pip,
virtualenv, vim) on Android via BotBrew [3]
  * Installing Linux on Android [4] for an even more desktop-like
development environment
  * Using SL4A/Py4A to create an Android app in Python
  * Silliness with Python -> Pyjamas -> Javascript -> PhoneGap app

Since then I've been exploring android-python27 [5], which is a
Python2.7 version of SL4A/Py4A that can be embedded and distributed in
an Android app. I have spent the most time making development with
this project (and Py4A) more like developing a normal Python program
(using virtualenv, running without the Android emulator [6]).

I have also begun looking into Kivy [7], which is a a project that
lets you create multi-touch applications for
Linux/Windows/OSX/Android/iOS with Python. I have not actually used
this project yet, but it looks to be very good and is gaining
mindshare quickly.

My long-term goal is to use one of the Python and Android projects to
make a Python IDE that runs on Android and that can make Python-based
Android apps (yo dawg). This can technically already be done [8] using
Py4A and AIDE [9], but I want to make it a more integrated and easy to
use experience.

I imagine the target audience for the GDG would be most interested in
creating Android apps, so that narrows the topics to SL4A,
android-python27, and Kivy. I don't think I'll have time to properly
look into Kivy before November, so I should probably talk about SL4A
for on-device Python and android-python27 for creating Android apps
with Python.

I could structure it as a two-part workshop, or just do either of the parts.

Part 1: Exploring your device with SL4A
  * Install SL4A
  * Install Py4A
  * Explore the API from the interpreter

Part 2: Create an Android app with android-python27
  * Assume a standard Eclipse with Android dev setup
  * Create a skeleton python-android-27 project
  * Setup Python dev environment (python 2.7, virtualenv)
  * Install my mock-sl4a-python-api module
  * Setup the Python Android build script
  * Create a small app that uses the SL4A android API
  * Run on emulator
  * Sign and run on device

[1] http://clusterbleep.net/blog/2012/09/04/pyohio-2012-presentation-python-and-android/
[2] http://code.google.com/p/python-for-android/
[3] http://botbrew.com/
[4] http://linuxonandroid.org/
[5] http://code.google.com/p/android-python27/
[6] https://github.com/brousch/sl4a_pydroid_mock_api
[7] http://kivy.org/#home
[8] http://clusterbleep.net/blog/2012/07/31/how-to-create-an-android-app-and-apk-on-android-with-python/
[9] https://play.google.com/store/apps/details?id=com.aide.ui

On Tue, Oct 2, 2012 at 5:17 PM, Uki Dominque Lucas <ukidlucas at gmail.com> wrote:
> Hi Ben and Brian,
> thanks for the email!
> GDG Chicago Android is the same as old "GTUG" -- Google has changed
> the name of their groups to "Google Developers Groups".
> We would love to have you over to speak and would be happy to cover
> reasonable expenses.
> This next meeting is too close and I would like to give you more time
> to present. How does Tuesday, Nov 27, 2012 sound?
> Could you give me some sense what would you want to present on, I
> would leave you flexibility as long as you keep it interesting.
> I workshop style would be great so people learn something new.
> respectfully,
> Uki Dominque Lucas
> founder & CEO:
> http://CyberWalkAbout.com
> community manager:
> http://ChicagoAndroid.com
> http://PolishAmericanAngels.com
> Mobile: +1 (650) 260-4854
> Skype: UkiDLucas
> Twitter: @UkiDLucas
> Linked In: http://www.linkedin.com/in/ukidlucas
> "Roadmap for Mobile Business" eBook: http://bit.ly/CyberWalkAboutBook
> CouponCabin app: http://bit.ly/CyberCouponCabin
> On Mon, Oct 1, 2012 at 2:54 PM, Brian Ray <brianhray at gmail.com> wrote:
>> ---------- Forwarded message ----------
>> From: Ben Rousch <brousch at gmail.com>
>> Date: Mon, Oct 1, 2012 at 2:45 PM
>> Subject: Re: [Chicago] using-python-on-android
>> To: The Chicago Python Users Group <chicago at python.org>
>> Oh no, I've been outed! I knew badgering Carl about the PyOio videos
>> would come back to bite me.
>> I've lurked on this email list for a while as I've wanted to make it
>> to a ChiPy meeting. In Michigan, even near Detroit, there's no Python
>> group nearly as large as you fine folks.
>> I have been considering going to this meeting since it covers two of
>> my favorite topics, but my biggest issue is having to take one or two
>> days off of work to do so. I'm also a little fuzzy about the details,
>> probably since I'm not (but might be now) on the Chicago Android
>> mailing list. Correct me if I'm wrong, but I think this is a GDG
>> Chicago Android meeting in partnership with the Chicago Google
>> Technology Group (or are those the same group?) and is trying to draw
>> a SL4A/Py4A speaker in from ChiPy?
>> Anyways, if I seem to have it straight, and you all can get me in
>> touch with this Uki fellow I'll see if something can be arranged. If I
>> don't have it straight, then please get me pointed in the right
>> direction.
>> On Mon, Oct 1, 2012 at 3:04 PM, Carl Karsten <carl at personnelware.com> wrote:
>>> http://pyvideo.org/video/1368/using-python-on-android
>>> The presenter is in Grand Rapids, MI and loves user groups.
>>> There is a nice Amtrak line that could bring him here and back.
>>> Departs: 7:40 AM, 4 hour ride, $30.  speak at ChiPy,  spend the night,
>>> next train back iDeparts: 4:55 PM, $35.
>>> Also, please root round on that page and look for problems.  We did a
>>> bunch of changes to the video work flow.  It didn't go as smooth as
>>> hoped, but I think everything is good now.  The main new feature is
>>> the  Download MP4 link.   Which last I checked doesn't give you a nice
>>> file name when you down load it, but at least it is an option.
>>> --
>>> Carl K
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> http://mail.python.org/mailman/listinfo/chicago
>> --
>>  Ben Rousch
>>    brousch at gmail.com
>>    http://clusterbleep.net/
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>> --
>> Brian Ray
>> @brianray
>> (773) 669-7717
> --

 Ben Rousch
   brousch at gmail.com

More information about the Chicago mailing list