logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

android 11 后台启动service不能访问camera(摄像头)解决

Android11 后台启动service不能访问camera(摄像头)解决Android 11增加了权限,在后台启动一个service,无法访问摄像头。解决方案解决方案分为两类:1.启动者有前台activity;2启动者本身是一个后台服务。启动者有前台activity在需要启动的服务里面增加前台服务的标签,注明需要使用camera。这个比较简单,直接贴代码。<serviceandroid:

#android
intent的android:mimeType 解析

Intent的data Uri 解析如下方法:intent.data=Uri.parse(“content://telephony/carriers”);方法解析是在:public @Nullable String resolveType(@NonNull Context context)这里的规则:content匹配的话就继续往下,获取getAuthority:telephony。查找manif

#android
Android app启动流程

app启动,四大组件启动

#android#java#开发语言
Android 导入WrappedKey

Android 导入WrappedKey本文给出WrappedKey导入AES密钥的方案。本文参考代码 CTS中的导入测试。WrappedKey 需要的格式:KeyDescription ::= SEQUENCE(keyFormat INTEGER,# Values from KeyFormat enum.keyParams AuthorizationList,)SecureKeyWrap

#android
到底了