Monday, August 23, 2010

Windows下用msysgit下载Android源代码方法

http://code.google.com/p/msysgit/下载Git for Windows并安装(一直下一步就行了)

建立用来存放源文件的文件夹AndroidSrc(或者其他名字)

http://android.git.kernel.org/找到相应项目的源代码包地址

右击文件夹AndroidSrc选择Git Bash出现一个命令行终端

输入命令:

git clone git://android.git.kernel.org/+工程包地址+.git

比如:

git clone git://android.git.kernel.org/platform/external/webkit.git

git clone git://android.git.kernel.org/platform/packages/apps/Browser.git

Tags: Android


Monday, August 23, 2010

Ubunt10.04LTS使用Git下载Android源代码

安装Git

sudo apt-get install git-core curl

curl是一个利用URL语法在命令行下工作的文件传输工具,会在后面安装Repo的时候用到。

安装Repo

首先确保在当前用户的主目录下创建一个/bin目录(如果没有的话),然后把它(~/bin)加到PATH环境变量中
接下来通过curl来下载Repo脚本,保存到~/bin/repo文件中

curl http://android.git.kernel.org/repo >~/bin/repo

给repo可执行权限

chmod a+x ~/bin/repo

初始化版本库

如果是想把Android当前主线上最新版本的所有的sourcecode拿下来,我们需要repo的帮助。
先建立一个目录,比如~/android,进去以后用repo init命令即可。

repo init -u git://android.git.kernel.org/platform/manifest.git

最后会看到 repo initialized in /android这样的提示,就说明本地的版本库已经初始化完毕。

下载Android代码

repo sync

Tags: Linux, Google, Android


Wednesday, July 14, 2010

飞信Android 2.2.1版上线支持wifi和wap两种登录方式

飞信官网已经可以下载支持wifi和wap两种登录方式的Android飞信了

下载地址:http://feixin.10086.cn/download/mobileclient/

支持大多数Android系统的手机

登录界面:

Tags: IM, Android


Monday, July 12, 2010

Error generating final archive: Debug certificate expired on

Error generating final archive: Debug certificate expired on

解决办法:
进入:C:\Documents and Settings\Administrator\.android

删 除:debug.keystore及 ddms.cfg

 

ERROR: system image file too large for device's hardware configuration

解决方法:可以在C:\Documents and Settings\Administrator\.android\avd\22.avd下找到config.ini,在该文件中加入disk.systemPartition.size=96MB,这句话重启就可以了。

Tags: Android


Sunday, July 11, 2010

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


Tuesday, July 06, 2010

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


Monday, April 19, 2010

Android中使用的第三方Java代码

Android HTTP处理 使用了apache的HttpComponents http://hc.apache.org/
XML处理使用了 xmlpull http://www.xmlpull.org/  和 SAX http://www.saxproject.org/

Tags: Android, apache


Monday, April 19, 2010

Android软件下载(Moto Milestone XT702)

UCWEB
Opera
Sina微博
QQ
人人

Fetion

Tags: Android


Wednesday, April 14, 2010

Blackberry HTTP status Code 302

黑莓手机底层对于HTTP 响应码(status Code)302 重定向问题未作处理,故需要在应用程序中自己处理:在http 头中含有服务器重定向的地址:newUrl = con.getHeaderField("location").trim();

参考http://www.cnblogs.com/zhengyun_ustc/archive/2006/07/24/nokiahttpconnection302.html

Android 等其他客户端底层好像做了处理.

Tags: J2ME, Android, Blackberry