1
任何人都可以建议我如何隐藏和取消隐藏应用程序图标?隐藏图标后,如果用户拨打1234等特定号码,我想启动应用程序。我该如何做?Android隐藏/取消隐藏应用程序图标
任何人都可以建议我如何隐藏和取消隐藏应用程序图标?隐藏图标后,如果用户拨打1234等特定号码,我想启动应用程序。我该如何做?Android隐藏/取消隐藏应用程序图标
那么,如上所述,问题的第一部分是Android: How to Remove/Uninstall application shortcuts from Home Screen?等的重复。
至于第二部分,您需要使用BroadcastReceiver,并且已被Using Broadcast receiver to detect the outgoing calls等人回答。
但是请注意,您需要在清单中部署意图过滤器,因为所有意图都会调用BroadcastReceiver。
<receiver android:name=".OutgoingCallReceiver" >
<intent-filter>
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter>
</receiver>
,并添加权限,以及:
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
最后,在Android 6.0及以上,这是一个dangerous permission。在使用它之前,你需要明确地询问它。因此,在获取之前不要从主页中删除应用程序是一个好主意。
[Android应用程序无图标]的可能重复(http://stackoverflow.com/questions/14174993/android-app-without-icon) – Strider
可能重复[Android程序隐藏/取消隐藏应用程序图标](http:///stackoverflow.com/questions/19114439/android-hide-unhide-app-icon-programmatically) – Amsheer