具体参考:https://blog.csdn.net/hehe26/article/details/52921056?utm_source=blogxgwz38
具体参考:https://www.cnblogs.com/yourancao520/archive/2012/06/25/2561367.html
具体参考:startActivityForResult设置了Extra,设置URI会导致data返回null。不传URI则可以返回data。
具体参考:Manifest.permission.CAMERA
具体参考:fileProvider使用,涉及到meta-data标签 参考如下设置:
// Manifest.xml <provider android:authorities="${applicationId}.fileprovider" android:name="androidx.core.content.FileProvider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/> </provider> //xml/file_paths.xml由于安全机制,所以需要(Android10) <paths> <cache-path name="my_imgs_cache" path="." /> </paths>设置的时候注意可以根据路径的不同使用不同标签:
前人栽树,后人乘凉。
