Comments (5)
Hi @amjadislam ,
Can you please paste your stack trace?
Thanks
from mediapicker.
Hello Im getting the same problem with camera and video in nexus 5x android 8.1.0, and in samsung s6 android 7.0
My code is
new ImagePicker.Builder(activity) .mode(ImagePicker.Mode.CAMERA) .compressLevel(ImagePicker.ComperesLevel.MEDIUM) .directory(ImagePicker.Directory.DEFAULT) .allowMultipleImages(false) .enableDebuggingMode(enableDebug) .build();
and the error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/net.alhazmy13.mediapicker.Image.ImageActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/mediapicker/images/514b755a-5e40-42a1-ad07-a6e75117100c.png
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/mediapicker/images/514b755a-5e40-42a1-ad07-a6e75117100c.png
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:712)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:401)
at net.alhazmy13.mediapicker.Image.ImageActivity.startActivityFromCamera(ImageActivity.java:156)
at net.alhazmy13.mediapicker.Image.ImageActivity.pickImage(ImageActivity.java:81)
at net.alhazmy13.mediapicker.Image.ImageActivity.pickImageWrapper(ImageActivity.java:298)
at net.alhazmy13.mediapicker.Image.ImageActivity.onCreate(ImageActivity.java:69)
at android.app.Activity.performCreate(Activity.java:6999)
at android.app.Activity.performCreate(Activity.java:6990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
01-03 21:05:44.265 15429-15429/com.myapp E/UncaughtException: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/net.alhazmy13.mediapicker.Image.ImageActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/mediapicker/images/514b755a-5e40-42a1-ad07-a6e75117100c.png
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/mediapicker/images/514b755a-5e40-42a1-ad07-a6e75117100c.png
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:712)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:401)
at net.alhazmy13.mediapicker.Image.ImageActivity.startActivityFromCamera(ImageActivity.java:156)
at net.alhazmy13.mediapicker.Image.ImageActivity.pickImage(ImageActivity.java:81)
at net.alhazmy13.mediapicker.Image.ImageActivity.pickImageWrapper(ImageActivity.java:298)
at net.alhazmy13.mediapicker.Image.ImageActivity.onCreate(ImageActivity.java:69)
at android.app.Activity.performCreate(Activity.java:6999)
at android.app.Activity.performCreate(Activity.java:6990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
Thanks
from mediapicker.
I also get this error, how to fix this? Thanks
from mediapicker.
just add <activity
android:name="net.alhazmy13.mediapicker.Image.ImageActivity"></activity>
on your manifest and it will fix the issue.
from mediapicker.
Hi @PavelFoujeu and @nadhirfr
Can you please confirm if it fixed wit last beta release 2.4.1-beta or not?
Thanks
from mediapicker.
Related Issues (20)
- Doesn't call doInBackground in ImageActivity
- Create 2.4.5
- App crashes if user presses back button when ImageActivity is gone
- not getting intent data after selecting image from image picker
- Acvitity freeze HOT 1
- VideoPicker for get video only result a splash after choose a video file.
- Not working Android 10 HOT 1
- Performing pause of activity that is not resumed
- How can i set maximum video record duration on camera in this library?
- Manifest merger failed HOT 2
- Unable to start activity
- getting issue in Android 30 HOT 8
- Library will become inaccessible May 1st 2021 - Bintray is shutting down HOT 1
- Manifest merger failed with multiple errors
- Force close when get image from camera in Kitkat HOT 1
- How to set only camera intent?
- NullPointerException ImageActivity:397 When selecting from Google Photos HOT 1
- Failed to resolve: MediaPicker:libary:unspecified HOT 3
- Thanks
- android.content.ActivityNotFoundException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediapicker.