接到任务去调查如何定制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键,就可以得到如下的效果。
定制Android的Home_第1张图片

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

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

更多相关文章

  1. Android Studio中模拟器中关于VT-x is disabled in BIOS错误的解
  2. 更改Android模拟器中的hosts文件
  3. Studio 1.5模拟器启动错误android/metrics/metrics_reporter_too
  4. 利用任务调度特性检测Android模拟器
  5. Android 4.1模拟器访问服务器接口
  6. 在mac上运行android的intel模拟器导致的死机问题解决
  7. 提升基于英特尔®架构的 Android* 模拟器的速度

随机推荐

  1. Android开发去除标题栏title
  2. Android开发工具总结
  3. Android(安卓)Toast 用法总结
  4. Android底部导航栏之BottomNavigationBar
  5. Android(安卓)OpenGL ES(十):绘制三角形Tri
  6. android 之 SurfaceView使用(桌面弹球)
  7. Android(安卓)CountDownTimer倒计时器的
  8. 第六章 Android常见的UI基础控件(二)
  9. Android(安卓)与J2ME 虚拟机相关资料
  10. 【Android】广播大全 Intent Action 事件