android 如何让 App icon 不显是在 launch 上,但此app 能从别的程序入口进入

最近在做一个项目,目的是为了让 app 安装后,在 launch 上找不到 所安装app 的 icon ,
但能从别的程序中进入。

 <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

默认启动activity设置去掉即可。

ComponentName  componetName = new                        
ComponentName("com.niuba.second","com.niuba.second.SecondActivity");
intent.setComponent(componetName);
startActivity(intent);

这个已经找到了正确解决方式,分享出来。
android:name="com.cn.sz.fise.fiseapplock.MainActivity"
android:excludeFromRecents="true"
android:label="@string/app_name"
android:screenOrientation="portrait" >

            <category android:name="android.andyidea.category" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.LAUNCHER" />

            <data
                android:host="MainActivity"
                                android:scheme="com.cn.sz.fise.fiseapplock" />
        </intent-filter>
        <intent-filter>
            <action android:name="com.cn.sz.fise.fiseapplock.action" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
            在第一个<intent-filter> 标签里面加上 <data> 是为了让图标不显示在 Launch 上,
            添加第二个 <intent-filter> 是为了这个程序 能够从别的应用程序中 利用 Intent 隐式启动。