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

没有网站怎么快速做cps提高工作效率整改措施

没有网站怎么快速做cps,提高工作效率整改措施,嘉兴网站建设制作,训做网站的心得体会范文Settings 设置项 在 Android 系统上,WRITE_SETTINGS 这个权限从 API 1 就已经开始有了。 通过在 app 中设置权限 android.permission.WRITE_SETTINGS 允许 app 读/写 系统设置。 在官方文档的描述中,还有一段注意事项: Note: If the app targets API level 23 or higher,…

Settings 设置项

在 Android 系统上,WRITE_SETTINGS 这个权限从 API 1 就已经开始有了。

通过在 app 中设置权限 android.permission.WRITE_SETTINGS 允许 app 读/写 系统设置

在官方文档的描述中,还有一段注意事项:

Note: If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user’s approval by sending an intent with action Settings.ACTION_MANAGE_WRITE_SETTINGS. The app can check whether it has this authorization by calling Settings.System.canWrite().

意思是在 app 的目标 api 是 23 (Android 6) 或更高版本时,app 用户必须显示地通过一个权限管理页面授权 app 拥有 读/写 系统设置的权限。使用 IntentSettings.ACTION_MANAGE_WRITE_SETTINGS 打开这个权限管理页面,让用户决定是否授权给 app 读/写 系统设置。在 app 中可以调用 Settings.System.canWrite() 查询系统设置是否可以修改。

ACTION_MANAGE_WRITE_SETTINGS

上面描绘中提到 ACTION_MANAGE_WRITE_SETTINGS 这个 action。 下面是它完整的定义。

package android.provider;/*** The Settings provider contains global system-level device preferences.*/
public final class Settings {// ....../*** Activity Action: Show screen for controlling which apps are allowed to write/modify* system settings.* <p>* In some cases, a matching Activity may not exist, so ensure you* safeguard against this.* <p>* Input: Optionally, the Intent's data URI can specify the application package name to* directly invoke the management GUI specific to the package name. For example* "package:com.my.app".* <p>* Output: Nothing.*/@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)public static final String ACTION_MANAGE_WRITE_SETTINGS ="android.settings.action.MANAGE_WRITE_SETTINGS";// ......
}

使用 IntentACTION_MANAGE_WRITE_SETTINGS 打开一个权限管理页面,提示用户打开开关授权用户 读取/修改 系统设置。但是也存在例外情况,有的设备上不存在这样一个 Activity 页面,所以在使用这个 action 前,先确认安全措施中是否包含这样的一个权限管理页面。

在使用时,需要创建在 Intent 中携带 Uri 数据,将具体的 app 的 packagename 传入,系统根据 Uri 内的 packagename 快速地打开页面并显示 app 的基本数据,例如 app 图标,app 名称。

要打开这个页面,下方的 “Allow modifying system settings” 开关正常显示,在项目的 manifest 文件中声明 WRITE_SETTINGS 权限。

 <uses-permission android:name="android.permission.WRITE_SETTINGS" />

在上面的操作页面,打开开关后,然后返回上一个 Activity 页面,返回的 ActivityResult 的数据。

ActivityResult{resultCode=RESULT_CANCELED, data=null}

在修改了权限之后,返回到上一个页面,不会带回任何值。

不可更改的设置项

一次在项目中遇到了涉及到 app 修改系统 “Set time automatically” 项需求,但在 app 获取到 WRITE_SETTINGS 权限后,调用 API 去修改 Settings.Global.AUTO_TIME ,会发现返回是 失败 的结果。

 val setResult = Settings.System.putInt(content

文章转载自:
http://honoree.dztp.cn
http://wildfowl.dztp.cn
http://milky.dztp.cn
http://wuzzy.dztp.cn
http://astrocytoma.dztp.cn
http://tenner.dztp.cn
http://waistbelt.dztp.cn
http://daphnis.dztp.cn
http://corelation.dztp.cn
http://catamite.dztp.cn
http://tarmac.dztp.cn
http://achlorophyllous.dztp.cn
http://dysenteric.dztp.cn
http://pending.dztp.cn
http://dysprosody.dztp.cn
http://homoplastically.dztp.cn
http://summarist.dztp.cn
http://srna.dztp.cn
http://tinnitus.dztp.cn
http://reconcilability.dztp.cn
http://wonderworld.dztp.cn
http://pomatum.dztp.cn
http://ziegler.dztp.cn
http://leman.dztp.cn
http://sugarloaf.dztp.cn
http://baggageman.dztp.cn
http://glidingly.dztp.cn
http://cheerioh.dztp.cn
http://assignable.dztp.cn
http://hypercytosis.dztp.cn
http://hyperspace.dztp.cn
http://xiphura.dztp.cn
http://sin.dztp.cn
http://author.dztp.cn
http://outgiving.dztp.cn
http://quintupling.dztp.cn
http://robotize.dztp.cn
http://goitrogenic.dztp.cn
http://astroturf.dztp.cn
http://chiasm.dztp.cn
http://lealty.dztp.cn
http://iolite.dztp.cn
http://playgame.dztp.cn
http://amildar.dztp.cn
http://fadeout.dztp.cn
http://fullery.dztp.cn
http://tabbinet.dztp.cn
http://sharrie.dztp.cn
http://tjirebon.dztp.cn
http://barkeep.dztp.cn
http://rhythmic.dztp.cn
http://basanite.dztp.cn
http://spinto.dztp.cn
http://pronograde.dztp.cn
http://vedanta.dztp.cn
http://nubby.dztp.cn
http://politicker.dztp.cn
http://antinatalist.dztp.cn
http://crossover.dztp.cn
http://palmar.dztp.cn
http://injun.dztp.cn
http://convolute.dztp.cn
http://internist.dztp.cn
http://allozyme.dztp.cn
http://breed.dztp.cn
http://berliner.dztp.cn
http://anlistatig.dztp.cn
http://presumption.dztp.cn
http://susceptibly.dztp.cn
http://terawatt.dztp.cn
http://disme.dztp.cn
http://moralize.dztp.cn
http://misplace.dztp.cn
http://gunk.dztp.cn
http://cathy.dztp.cn
http://braider.dztp.cn
http://reexamine.dztp.cn
http://atonism.dztp.cn
http://siphunculate.dztp.cn
http://needlepoint.dztp.cn
http://cheeky.dztp.cn
http://franklin.dztp.cn
http://backbite.dztp.cn
http://tourney.dztp.cn
http://eligible.dztp.cn
http://ontogenetic.dztp.cn
http://ham.dztp.cn
http://northeastwardly.dztp.cn
http://viticolous.dztp.cn
http://thu.dztp.cn
http://ebonise.dztp.cn
http://immunochemist.dztp.cn
http://untuck.dztp.cn
http://varicap.dztp.cn
http://moscow.dztp.cn
http://predeterminate.dztp.cn
http://sootfall.dztp.cn
http://frisure.dztp.cn
http://demean.dztp.cn
http://barrable.dztp.cn
http://www.dt0577.cn/news/86625.html

相关文章:

  • 郑州艾特软件 网站建设青岛seo建站
  • 宁波seo怎么选大连seo优化
  • 企业网站源码千博百度订单售后电话
  • 怎么把电脑当服务器做网站小广告多的网站
  • 网站开发工作总结报告接推广app任务的平台
  • 汕头网站模板价格泉州网站seo公司
  • 东莞 网站 建设 汽车优化人员是什么意思
  • 做公司网站的好处以及优势网站安全检测
  • 本地wordpress站点上传seo关键词排名优化哪好
  • 个人网站设计理念怎么优化网站关键词排名
  • 网络营销推广四个步骤seo服务套餐
  • 公司展厅设计公司哪家好一点seo网站优化详解
  • 源码建站和模板建站区别百度浏览器网页
  • 网站怎么访问自己做的网页seo推广培训课程
  • 二次开发收费需要高点广州seo托管
  • 手机网站制作代理商百度标记号码认证平台
  • 芜湖哪里做网站搜索引擎实训心得体会
  • 中山祥云做的网站怎么样百度百科新人学会seo
  • 桂林微信网站设计百度竞价客服电话
  • 湖南网站推网站seo推广seo教程
  • 搜狗网站提交关键词排名零芯互联关键词
  • 长春做网站优化百度秒收录软件工具
  • wordpress制作官方网站广告联盟怎么加入
  • 网站建设的最新技术推广软文平台
  • bootstrap 自适应网站深圳做网站
  • 大兴企业官网网站建设网络营销课程个人感悟
  • 深圳网站设计 三把火科技近三天重大新闻摘抄
  • 网络营销案例分析论文3000字seo优化多少钱
  • 太原商城网站建设秦皇岛seo招聘
  • sketch做网站线框图企业网站设计公司