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

app crashes on takePicture() imageUri creation #6

Open
IefVandepitte opened this issue Nov 10, 2017 · 2 comments
Open

app crashes on takePicture() imageUri creation #6

IefVandepitte opened this issue Nov 10, 2017 · 2 comments

Comments

@IefVandepitte
Copy link

imageUri = FileProvider.getUriForFile(MainActivity.this,
BuildConfig.APPLICATION_ID + ".provider", photo);
context = MainActivity@5033
authority = be.avondschool.vi.ocrtestappgooglemobilevisionapi
photo = /storage/emulated/0/picture.jpg

E/AndroidRuntime: FATAL EXCEPTION: main
Process: be.avondschool.vi.ocrtestappgooglemobilevisionapi, PID: 21179
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=20, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {be.avondschool.vi.ocrtestappgooglemobilevisionapi/be.avondschool.vi.ocrtestappgooglemobilevisionapi.MainActivity}:

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference

@IefVandepitte
Copy link
Author

Found the issues, android.manifest and res/xml/provider_paths weren't given in the demonstration

@roopeshn28
Copy link

roopeshn28 commented Mar 13, 2018

@IefVandepitte Hey the app crashed the same way,how did you solve the issue can you please tell

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

2 participants