在AndroidManifest.xml文件中把launcher activity
            <intent-filter >
                 <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
 
改为
            <intent-filter >
                  <action android:name="yourPackageName"/>
                 <category android:name="android.intent.category.DEFAULT"/>
 
            </intent-filter>
 
注意:这样设置后该apk就无法启动了,只有在其他的apk中调用该apk,调用方法如下:
                 Intent intentlaunch = new Intent("yourPackageName");   
                 startActivity(intentlaunch);