将WINDOWS下ANDROID自带的应用程序移植到设备端

1:先将windows下android自带的SDK的SAMPLE(JetBoy)编译通过,调试并运行成功。

2:把JetBoy文件夹复制到ubuntu /home/james/gingerbread_0408/packages/apps目录下。

3:参考一个模板在JetBoy目录下建立一个android.mk文件

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

 

LOCAL_MODULE_TAGS := optional

 

LOCAL_SRC_FILES := $(call all-java-files-under,src)

 

# TODO: Remove dependency of application on the test runner (android.test.runner)

# library.

LOCAL_JAVA_LIBRARIES := android.test.runner

 

LOCAL_STATIC_JAVA_LIBRARIES += android-common

 

LOCAL_PACKAGE_NAME := JetBoy

 

include $(BUILD_PACKAGE)

 

# Use the following include to make our test apk.

include $(call all-makefiles-under,$(LOCAL_PATH))

 

4:配置好编译坏境,终端进人/home/james/gingerbread_0408/packages/apps/JetBoy,输入mm进行模块编译。

5:再编译生成tcc8800_mtd.img

6:重新烧录,开机运行,即可在主菜单看到JetBoy程序

 

;