需求是这样的。
我做的客户端,最终是要集成到第三方应用中的,然后第三方应用需要我们隐藏掉手机桌面的启动图标。入口只能在第三方应用中。
请问HBuilder能实现这个功能吗?
需求是这样的。
我做的客户端,最终是要集成到第三方应用中的,然后第三方应用需要我们隐藏掉手机桌面的启动图标。入口只能在第三方应用中。
请问HBuilder能实现这个功能吗?
Trust - 少说废话
云打包不能实现,而且不推荐这样做,可能会造成程序无法正常启动。
如果一定要隐藏的话,可以使用离线打包并且修改安卓相应的配置信息来隐藏。
关于离线打包,请参阅5+SDK集成以及Android离线打包相关的文章说明。
在AndroidManifest.xml中,修改入口activity的配置。
<intent-filter>
<action android:name="xxxxx.action.main">
<category android:anme="xxx.category.launch"></category>
</intent_filter>
将上述标签内的子标签移除即可。
注:再次强调,App开发中不推荐此做法,可能造成未知的一些错误,导致程序无法正常启动。
4***@163.com (作者)
问题我已经解决了,但是不是使用你提供的方法。使用的是
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<data android:host="AuthActivity" android:scheme="io.dcloud.H5B6D3C9A" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
然后第三方,使用
Intent intentTest = new Intent();
intentTest.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
ComponentName component = new ComponentName("io.dcloud.HBuilder.Hello", "io.dcloud.PandoraEntry");
intentTest.setComponent(component);
//Intent intentTest= getPackageManager().getLaunchIntentForPackage("io.dcloud.H5B6D3C9A");
intentTest.putExtra("firstKeyName","FirstKeyValue");
startActivity(intentTest);
调起已经隐藏的客户端,
现在还有一个问题,我的客户端报名怎么改不过来??
4***@163.com (作者)
问题我已经解决了,但是不是使用你提供的方法。使用的是
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<data android:host="AuthActivity" android:scheme="io.dcloud.H5B6D3C9A" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
第三方调起已经隐藏的客户端,
Intent intentTest = new Intent();
intentTest.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
ComponentName component = new ComponentName("io.dcloud.HBuilder.Hello", "io.dcloud.PandoraEntry");
intentTest.setComponent(component);
//Intent intentTest= getPackageManager().getLaunchIntentForPackage("io.dcloud.H5B6D3C9A");
intentTest.putExtra("firstKeyName","FirstKeyValue");
startActivity(intentTest);
现在还有一个问题,我的客户端报名怎么改不过来??
4***@163.com (作者)
如果隐藏了,启动activity的全名是?
2016-09-08 11:10