我开发了一个Apk,怎么样在我安装后隐藏该程序图标。
我是想在我安装的一个主Apk调用这个Apk,而这个Apk我又不想被用户看到直接运行,所以要隐藏。

解决方案 »

  1.   

    隐藏图标?不生成不就OK了
    afxmanifest.xml里去掉
    <category android:name="android.intent.category.LAUNCHER"></category>
    就可以了
      

  2.   

    原来这句话就是控制隐藏apk的怪不得连log都不一样呢?[2010-11-08 14:42:55 - APP] Waiting for HOME ('android.process.acore') to be launched...
    [2010-11-08 14:44:00 - APP] WARNING: Application does not specify an API level requirement!
    [2010-11-08 14:44:00 - APP] Device API version is 8 (Android 2.2)
    [2010-11-08 14:44:00 - APP] HOME is up on device 'emulator-5554'
    [2010-11-08 14:44:00 - APP] Uploading APP.apk onto device 'emulator-5554'
    [2010-11-08 14:44:16 - APP] Installing APP.apk...
    [2010-11-08 14:44:47 - APP] Success!
    [2010-11-08 14:44:47 - APP] Starting activity com.android.APP.APP on device 
    [2010-11-08 14:44:55 - APP] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
    cmp=com.android.APP/.APP }
    [2010-11-08 14:45:14 - APP] New emulator found: emulator-5556
    [2010-11-08 14:45:14 - APP] Waiting for HOME ('android.process.acore') to be launched...
    [2010-11-08 14:45:17 - APP] ------------------------------
    [2010-11-08 14:45:17 - APP] Android Launch!
    [2010-11-08 14:45:17 - APP] adb is running normally.
    [2010-11-08 14:45:17 - APP] No Launcher activity found!
    [2010-11-08 14:45:17 - APP] The launch will only sync the application package on the device!
    [2010-11-08 14:45:17 - APP] Performing sync
    [2010-11-08 14:45:17 - APP] Automatic Target Mode: Preferred AVD 'android2.2' is available on emulator 'emulator-5554'
    [2010-11-08 14:45:17 - APP] WARNING: Application does not specify an API level requirement!
    [2010-11-08 14:45:17 - APP] Device API version is 8 (Android 2.2)
    [2010-11-08 14:45:21 - APP] Application already deployed. No need to reinstall.
    [2010-11-08 14:45:21 - APP] /APP/bin/APP.apk installed on device
    [2010-11-08 14:45:21 - APP] Done!
    [2010-11-08 14:45:49 - APP] ------------------------------
    [2010-11-08 14:45:49 - APP] Android Launch!
    [2010-11-08 14:45:49 - APP] adb is running normally.
    [2010-11-08 14:45:49 - APP] No Launcher activity found!
    [2010-11-08 14:45:49 - APP] The launch will only sync the application package on the device!
    [2010-11-08 14:45:49 - APP] Performing sync
    [2010-11-08 14:45:49 - APP] Automatic Target Mode: Preferred AVD '55' is available on emulator 'emulator-5556'
    [2010-11-08 14:45:49 - APP] WARNING: Application does not specify an API level requirement!
    [2010-11-08 14:45:49 - APP] Device API version is 8 (Android 2.2)
    [2010-11-08 14:45:49 - APP] Uploading APP.apk onto device 'emulator-5556'
    [2010-11-08 14:45:58 - APP] Installing APP.apk...
    [2010-11-08 14:46:34 - APP] Success!
    [2010-11-08 14:46:34 - APP] /APP/bin/APP.apk installed on device
    [2010-11-08 14:46:34 - APP] Done!

    可是这样在隐藏的同时,在程序首次运行在模拟器的时候它也就不运行了,在那儿可以找到它并把它启动呢?
      

  3.   

    [Quote=引用 3 楼 zhq56030207 的回复:]
    [2010-11-08 14:45:58 - APP] Installing APP.apk...
    [2010-11-08 14:46:34 - APP] Success!
    [2010-11-08 14:46:34 - APP] /APP/bin/APP.apk installed on device
    [2010-11-08 14:46:34 - APP] Done!出现这个现象怎么办,程序都没办法运行啊?
      

  4.   

    楼主搞定了吗?我现在的情况是通过<category android:name="android.intent.category.LAUNCHER"></category>
    可以隐藏,但在其他地方是没办法打开的哦
      

  5.   

    无法从其他AKP,调用该修改的APK