SL4Aをインストール
AndroidでPythonができるというので、やってみた。
・SL4A による Android プログラミング
・http://mp.unoji.com/docs/sl4a/tutorial/tutorial.html
・Google Code Archive - Long-term storage for Google Code Project Hosting.
この辺のサイトの解説を見ていけばインストールは問題なくできるかと。
SL4Aのインストール時に色々と許可が求められるのが少し気になる…
SL4AのAPIについてちょっとメモ
All SL4A API calls return an object with three fields:
・id: a strictly increasing, numeric id associated with the API call.
・result: the return value of the API call, or null if there is no return value.
・error: a description of any error that occurred or null if no error occurred.
全てのAPIは上の3つのフィールドを持つオブジェクトを返すとかなんとか。
電車の中でのプログラミングが容易になるだろうし、これからちょくちょく触ってみよう。