android_development
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
android_development [2009/08/13 16:55] – jtkorb | android_development [2012/07/18 06:56] (current) – clarification of port setting on Android device jtkorb | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Android Development ====== | ====== Android Development ====== | ||
- | Notes for setting up the Android | + | ===== CS0 (7/17/2012) ===== |
+ | |||
+ | To install SL4A and Python | ||
+ | |||
+ | - Visit http:// | ||
+ | - Download and install SL4A: http:// | ||
+ | - Download and install Python For Android: http:// | ||
+ | |||
+ | To copy a script to the SL4A script directory | ||
+ | - Install Android SDK onto your computer, so that adb is in your path and you can connect your Android device. | ||
+ | |||
+ | $ adb push fetch.py / | ||
+ | |||
+ | To edit Python scripts on a workstation and push to a connected Kindle Fire... | ||
+ | - See full instructions at http:// | ||
+ | - Connect Android device to workstation with Android SDK installed. | ||
+ | - From SL4A Scripts screen -> Menu -> View -> Interpreters | ||
+ | - Set server to use port 4242: Menu -> Preferences -> Server Port -> 4242 | ||
+ | - Start server on Android device: Menu -> Start Server -> Private. | ||
+ | - Set environment variable with local port (used by android.py): | ||
+ | - Forward local port on workstation to Android device: '' | ||
+ | - Download android.py to workstation workspace: http:// | ||
+ | - Run Python and play... | ||
+ | |||
+ | $ python | ||
+ | Python 2.7.2 (v2.7.2: | ||
+ | [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | ||
+ | Type " | ||
+ | >>> | ||
+ | >>> | ||
+ | >>> | ||
+ | |||
+ | ===== CS1 (8/14/2009) ===== | ||
+ | |||
+ | These notes are based on a Windows 7 environment and Android G1 development unit. Instructions based on [[http:// | ||
Download and install [[http:// | Download and install [[http:// | ||
- | Download and install the [[http:// | + | Download and install the [[http:// |
android_development.1250207735.txt.gz · Last modified: 2009/08/13 16:55 by jtkorb