手机自带浏览器图标不见了怎么办

手机自带浏览器图标不见了怎么办,第1张

1.初步判断可能是软件被隐藏了,打开应用程序,点击菜单选择显示隐藏应用程序,查看是否勾选不显示的软件了“如勾选,将其取消勾选即可”

2.检查是否将图标归纳到了其它文件夹中了;

3.如以上 *** 作均无效备份手机数据“电话簿、短信息、多媒体文件等”,进行恢复出厂设置;

3.如果恢复出厂设置问题依然存在,将手机送至就近的服务中心进行检测及进一步处理。

Android应用,创建桌面图标先在注册activity时,需要添加一个action为androidintentactionCREATE_SHOERTCUT的intentFilter。
1创建图标代码如下:
<activity android:name="MainActivity">
<intent-filter>
<action android:name="androidintentactionCREATE_SHORTCUT"/>
</intent-filter>
</activity>
2接下来就是就是设置快捷方式的图标、名称、事件等属性。
public void createShortCut(){
Intent addShortCut;
if(getIntent()getAction()equals(IntentACTION_CREATE_SHORTCUT)){//判断是否需要添加快捷方式
addShortCut = new Intent();
addShortCutputExtra(IntentEXTRA_SHORTCUT_NAME , "快捷方式");//快捷方式的名称
Parcelable icon = ShortcutIconResourcefromContext(this, Rdrawableicon);//显示的
addShortCutputExtra(IntentEXTRA_SHORTCUT_ICON_RESOURCE, icon);//快捷方式激活的activity,需要执行的intent,自己定义
addShortCutputExtra(IntentEXTRA_SHORTCUT_INTENT, new Intent());
setResult(RESULT_OK, addShortCut);//OK,生成
}else{//取消
setResult(RESULT_CANCELED);
}
}
3向桌面再增加一个图标
Intent shortcut = new Intent("comandroidlauncheractionINSTALL_SHORTCUT"); //快捷方式的名称
shortcutputExtra(IntentEXTRA_SHORTCUT_NAME, getString(Rstringapp_name));
shortcutputExtra("duplicate", false); //不允许重复创建
//指定当前的Activity为快捷方式启动的对象: 如 comeverestvideoVideoPlayer
//注意: ComponentName的第二个参数必须加上点号(),否则快捷方式无法启动相应程序
// ComponentName comp = new ComponentName(thisgetPackageName(), ""+thisgetLocalClassName());
// shortcutputExtra(IntentEXTRA_SHORTCUT_INTENT, new Intent(IntentACTION_MAIN)setComponent(comp));
shortcutputExtra(IntentEXTRA_SHORTCUT_INTENT, new Intent(this,WXEntryActivityclass));//快捷方式的图标
ShortcutIconResource iconRes = IntentShortcutIconResourcefromContext(this, Rdrawableic_launcher);
shortcutputExtra(IntentEXTRA_SHORTCUT_ICON_RESOURCE, iconRes);
sendBroadcast(shortcut);


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/13061769.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-30
下一篇 2023-05-30

发表评论

登录后才能评论

评论列表(0条)

保存