接到任务去调查如何定制Android的Home,在网上查了一下资料。本来以为很难的,但是居然只是简单的修改manifest.xml文件。参考 http://blog.csdn.net/sijiangong/archive/2009/08/12/4440037.aspx,只要把 android.intent.category.LAUNCHER 改为 android.intent.category.HOME,居然就可以把程序变成Home。

<application android:icon="@drawable/icon" android:label="@string/app_name">       <activity android:name=".MyHome" android:label="@string/app_name">            <intent-filter>                 <action android:name="android.intent.action.MAIN" />                 <category android:name="android.intent.category.HOME" />                 <category android:name="android.intent.category.DEFAULT" />            </intent-filter>       </activity></application>


试着把HelloWorld改了一下,在启动模拟器后,单机Home键,就可以得到如下的效果。


不过如果真的定制,还需要在自己的Home应用可以调用别的应用。

如果想要真正控制用户的界面,需要采用下边链接的方法。
http://hi.baidu.com/lvqiyong/blog/item/a5410e890ed459c1fc1f10ff.html
这个需要自己编译Android,制作img。下次再研究。我还没有学会编译呢。

更多相关文章

  1. Android工程的编译过程
  2. 目前最全的android恶意程序的分类谱
  3. APP开发实战114-Android(安卓)Studio打包介绍
  4. Android——编译odex保护
  5. android ndk 调用第三方so
  6. 用ARM DS-5进行android linux开发
  7. android 混淆文件project.properties和proguard-project.txt
  8. 学习Android从0开始之基础篇(1)-Android的四大基本组件
  9. cross compile toolchain for arm/android

随机推荐

  1. 利用ActivityInstrumentationTestCase2测
  2. 【android studio】 the logging tag can
  3. JNI / C for android 技术总揽
  4. Android中检测手机制式和移动网络类型
  5. Android中的数据存储与传输
  6. 在 Android 中使用 SQLite, ContentProvi
  7. [Android] Activity页面切换效果
  8. 如何提高Android用户体验
  9. android一些细节问题
  10. [置顶] android studio导入项目后出现can