当前位置: 首页 > news >正文

网站长春网站建设简述网站开发具体流程

网站长春网站建设,简述网站开发具体流程,500强中国企业名单,高端外贸网站建设服装我认为接受的答案不是实际答案。我将解释问题所在。我认为您是在Huawie#xff0c;Oppo#xff0c;Vivo#xff0c;Xiomi#xff0c;asus .......或某些设备上测试您的应用程序。使用这些设备#xff0c;如果我们关闭应用程序#xff0c;它们还将关闭我们的广播接收器。因…我认为接受的答案不是实际答案。我将解释问题所在。我认为您是在HuawieOppoVivoXiomiasus .......或某些设备上测试您的应用程序。使用这些设备如果我们关闭应用程序它们还将关闭我们的广播接收器。因此这就是问题。(要检查是否使用带有像素关系的模拟器)。我将解释如何解决这个问题。我们会将我们的应用添加到受保护的应用列表中。OS仅允许他们继续广播接收机的活动。(将此数组声明复制到您的代码中)private static final Intent[] POWERMANAGER_INTENTS {new Intent().setComponent(new ComponentName(com.miui.securitycenter, com.miui.permcenter.autostart.AutoStartManagementActivity)),new Intent().setComponent(new ComponentName(com.letv.android.letvsafe, com.letv.android.letvsafe.AutobootManageActivity)),new Intent().setComponent(new ComponentName(com.huawei.systemmanager, com.huawei.systemmanager.optimize.process.ProtectActivity)),new Intent().setComponent(new ComponentName(com.huawei.systemmanager, com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity)),new Intent().setComponent(new ComponentName(com.coloros.safecenter, com.coloros.safecenter.permission.startup.StartupAppListActivity)),new Intent().setComponent(new ComponentName(com.coloros.safecenter, com.coloros.safecenter.startupapp.StartupAppListActivity)),new Intent().setComponent(new ComponentName(com.oppo.safe, com.oppo.safe.permission.startup.StartupAppListActivity)),new Intent().setComponent(new ComponentName(com.iqoo.secure, com.iqoo.secure.ui.phoneoptimize.AddWhiteListActivity)),new Intent().setComponent(new ComponentName(com.iqoo.secure, com.iqoo.secure.ui.phoneoptimize.BgStartUpManager)),new Intent().setComponent(new ComponentName(com.vivo.permissionmanager, com.vivo.permissionmanager.activity.BgStartUpManagerActivity)),new Intent().setComponent(new ComponentName(com.samsung.android.lool, com.samsung.android.sm.ui.battery.BatteryActivity)),new Intent().setComponent(new ComponentName(com.htc.pitroad, com.htc.pitroad.landingpage.activity.LandingPageActivity)),new Intent().setComponent(new ComponentName(com.asus.mobilemanager, com.asus.mobilemanager.MainActivity))};将这些代码放入您的onCreate方法。在这里我使用共享首选项仅在应用程序首次打开时对其进行检查。final SharedPreferences.Editor pref     getSharedPreferences(allow_notify, MODE_PRIVATE).edit();    pref.apply(); final SharedPreferences sp     getSharedPreferences(allow_notify, MODE_PRIVATE);if(!sp.getBoolean(protected,false)) {for (final Intent intent : POWERMANAGER_INTENTS)if (getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) ! null) {AlertDialog.Builder builder  new AlertDialog.Builder(this);builder.setTitle(Alert Title).setMessage(Alert Body).setPositiveButton(Ok, new DialogInterface.OnClickListener() {Overridepublic void onClick(DialogInterface dialogInterface, int i) {startActivity(intent);sp.edit().putBoolean(protected,true).apply();}}).setCancelable(false).setNegativeButton(Cancel, new DialogInterface.OnClickListener() {Overridepublic void onClick(DialogInterface dialog, int which) {}}).create().show();break;
http://www.sadfv.cn/news/4692/

相关文章:

  • 响水做网站的全能网站建设教程
  • 响应式布局网站尺寸福建省住房和城乡建设部网站
  • 亿源科技网站建设成都隆昌网站建设
  • 百度做的网站字体侵权吗金牛区建设审批网站
  • 网站备案代码做隐私的网站
  • 网站建设规划书百度文库wordpress媒体库添加分类
  • 网站设计师 网站开发工程师一般云主机可以做视频网站吗
  • 返利网站开发代码dw网页制作基础知识
  • 汕头站扩建招标运城网址
  • 源代码代做网站wordpress 3.6
  • 做网站重要标签wordpress后台文章排序
  • w5500做服务器网站wordpress 医疗主题
  • flash网站设计师盘州市网站建设
  • 没公司怎么做网站wordpress打赏作者插件
  • 设计专业考研平面素材网站别墅装修设计图片大全 效果图
  • cms网站群管理系统品牌网站建设技术
  • qq群推广方法株洲关键词seo优化服务商
  • 织梦学校网站无锡网络推广外包
  • 网站评估怎么做会计上网站建设做什么费用
  • 手机html网站开发视频做网站行业如何跟客户交流
  • 集团网站建设哪家好建设网站模版
  • 网站建设怎么让百度搜索到国家卫生资格考试官网
  • 网页制作模板的网站免费中企动力会员控制平台
  • 代做毕业设计网站 道路桥梁优化大师下载安装免费
  • 引用网站的内容如何做注释软件技术毕业设计项目
  • 彩票网站建设维护武清做网站的
  • 福州鼓楼区网站建设投票网站建设
  • 企业网站功能模块设计网站开发工程师制作kpi
  • 建筑公司网站设计详情多语言做网站
  • 如何快速备案网站专业免费网站建设哪里便宜