zoukankan      html  css  js  c++  java
  • Android用自己的app替换Launcher

    /***********************************************************************
     *                    Android用自己的app替换Launcher
     * 声明:
     *     有时候,我们可能会希望Android系统上只跑一个我们自己的app,这不是
     * 瞎说,这是真的。
     *
     *                                  2016-1-7 深圳 南山平山村 曾剑锋
     **********************************************************************/
    
    一、参考文档:
        Android Launcher 分析
            http://blog.csdn.net/fengkehuan/article/details/6205980
    
    二、解决方法:
        在manifest中的main activity中添加如下intent-filter:
        <activity
                android:screenOrientation="landscape" 
                android:configChanges="orientation|screenSize"
                android:name="com.example.boottest.MainActivity"
                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" />  
                    <category android:name="android.intent.category.MONKEY" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
        </activity>
  • 相关阅读:
    118th LeetCode Weekly Contest Pancake Sorting
    118th LeetCode Weekly Contest Powerful Integers
    115th LeetCode Weekly Contest Check Completeness of a Binary Tree
    java PO、BO
    深度优先算法

    eclipse quick diff功能
    eclipse 文本编辑器
    批处理 注释
    常用的表操作
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5109479.html
Copyright © 2011-2022 走看看