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
Issue now arriving on api22( 5.1) #7
Comments
Sir I tested multimager apk directly on my device 5.1 api 22(lyf mobile phone flame seven) the same issue persists so I think something is really messing up the camera fragment most probably I guess.... When the multi capture button is clicked the camera opens but as soon as I click the photo the app crashes and redirects to main screen.... Not able to solve it |
Almost unable to replicate this too. I do not have a real device with version 5.1 exactly. I have tested on a device with version 5.1.1 and all emulators but its all working good. Probably the reason is mentioned in the crash report mentioned above. I have added a try catch for a fail case. I believe the issue is with the "fileUri" using which we are trying to get the real path of the image captured in the method "getImageRealPathFromURI()". I have provided logs at various places to check the value of "fileUri" object. Else you can debug to check its value. Please upgrade to version 1.0.6 after some time. |
OK so how to get around this problem.... After checking the logs this error in my device running on 5.1 api 22 after you updated the repo....( I am using 1.0.6 multimager version) |
That is obvious. If you can check the source code for |
I would suggest you should write a small application first to replicate the process of inserting a image data into MediaStore.Images table and querying it back using the fileUri. |
Could you suggest some more detail I am not able to get around this problem why it's arriving in this 5.1 api only... |
I have tested in some other devices running 5.1 and 5.1.1 too but it is working good there. Only in the case of Lyf phones running 5.1 i am seeing this error. I have tested here with a Lyf phone model number LS 4005 showcased as Flame. Unfortunately it has no adb drivers to debug using the device. |
On a personal note @PrafulAnand , you can do one thing. While creating the |
I am testing my app against different version beacause I have to launch it..Now i am able to open the camera and as soon as I click the photo my app crashes.....Not able to fix the issue..error in
android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
at android.database.CursorWrapper.getString(CursorWrapper.java:114)
at com.vlk.multimager.activities.CameraFragment.getImageRealPathFromURI(CameraFragment.java:578)
at com.vlk.multimager.activities.CameraFragment.getOutputMediaFile(CameraFragment.java:588)
at com.vlk.multimager.activities.CameraFragment$5.onPictureTaken(CameraFragment.java:673)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1102)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5354)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
The text was updated successfully, but these errors were encountered: