Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android7.0调用拍照直接崩溃,测试手机三星s7edge #134

Open
354420603 opened this issue Apr 13, 2017 · 3 comments
Open

Android7.0调用拍照直接崩溃,测试手机三星s7edge #134

354420603 opened this issue Apr 13, 2017 · 3 comments

Comments

@354420603
Copy link

No description provided.

@wjc1135944209
Copy link

7.0 只能把 fileuri 改成 contenturi

@marzaha
Copy link

marzaha commented Oct 11, 2017

StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
builder.detectFileUriExposure();

在Application.onCreate()中执行以上方法即可解决

ps转自大神:http://blog.csdn.net/tanghongchang123/article/details/68490946

@arronvera
Copy link

StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
builder.detectFileUriExposure();

添加一段代码在 GalleryFinal.init(coreConfig)后面就解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants