2010-07-11 23:48 Sunday

Android Input Method Framework


http://androidappdocs.appspot.com/resources/samples/SoftKeyboard/index.html
http://androidappdocs.appspot.com/resources/articles/on-screen-inputs.html
InputMethodManager Architecture Overview

There are three primary parties involved in the input method framework (IMF) architecture:

    * The input method manager as expressed by this class is the central point of the system that manages interaction between all other parts. It is expressed as the client-side API here which exists in each application context and communicates with a global system service that manages the interaction across all processes.
    * An input method (IME) implements a particular interaction model allowing the user to generate text. The system binds to the current input method that is use, causing it to be created and run, and tells it when to hide and show its UI. Only one IME is running at a time.
    * Multiple client applications arbitrate with the input method manager for input focus and control over the state of the IME. Only one such client is ever active (working with the IME) at a time.

package
android.view.inputmethod
      Interfaces
           InputConnection
           InputMethod
           InputMethod.SessionCallback
           InputMethodSession
           InputMethodSession.EventCallback
      Classes
           BaseInputConnection
           CompletionInfo
           EditorInfo
           ExtractedText
           ExtractedTextRequest
           InputBinding
           InputConnectionWrapper
           InputMethodInfo
           InputMethodManager

package
android.inputmethodservice

      Interfaces
           KeyboardView.OnKeyboardActionListener
      Classes
           AbstractInputMethodService
           AbstractInputMethodService.AbstractInputMethodImpl
           AbstractInputMethodService.AbstractInputMethodSessionImpl
           ExtractEditText
           InputMethodService
           InputMethodService.InputMethodImpl
           InputMethodService.InputMethodSessionImpl
           InputMethodService.Insets
           Keyboard
           Keyboard.Key
           Keyboard.Row
           KeyboardView

Tags: Android


2010-07-06 23:55 Tuesday

Android Scripting Environment (ASE)

开源项目
http://code.google.com/p/android-scripting/
能让Python,Perl等脚本语言运行在Android系统上,目前还是alpha版本.

首先安装ase_r25.apk
python_extras_r7.zip
python_r7.zip
python_scripts_r7.zip
放到你的SDCrad的根目录下.
打开ASE, menu -> view -> Interpreters -> menu -> Add -> Python
会在SDCrad的根目录下新建ase文件夹
将上面的三个zip包解压到ase文件夹

然后就可以运行python的测试程序了

Tags: Android, Python


2010-07-04 22:56 Sunday

难道这周五我拍到的是地震云

上周五,下班在东直门附近看到天空的云很好看,于是用手机拍了两张:


这周也听到传言说周末要地震
今天QQ弹出消息:广西西北已发生1586次小地震 目前余震仍不断
然后大学班级群里烟台的同学说看到地震云了才想起我拍的照片。
相关新闻:
北京天空出现大面积鱼鳞云
北京高温产生鱼鳞云 地震云预示地震?

但愿这只是浮云

Tags: NULL