jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Android 6.0 Media Take Pic #296

Closed danwatt24 closed 8 years ago

danwatt24 commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: 2.3.0 Device Tested On: LGE LGLS770 (Android 6.0) Simulator Tested On: LGE LGLS770 (?)

Expected Behavior

Successfully take a picture sequentially.

Actual Behavior

Takes first picture fine but will randomly exit debug (if debugging) upon another picture being taken.

Steps to reproduce the Behavior

Just try taking a picture multiple times. Eventually the app will exit and visual studio will stop debugging, no error.

In the MediaPickerActivity, this error occurs between OnCreate, after the StartActivityFoResult is called and OnActivityResult. The error specifically occurs right after taking the picture. The "ok" and "cancel" will sometimes show up but the app will exit before any action can be taken)

When not debugging android comes back with the generic failed app response. This error can be reproduced using the MediaAndroidTests from within the Media project.

danwatt24 commented 8 years ago

I no longer think this is a plugin issue but a Xamarin issue. After cloning the repo and manually stepping through your code, the issue seemed independent of the plugin. With that I went ahead and created a new native portable project, implemented the camera, and the same problem occurred where immediately after taking a picture (before being able to accept or reject it) the Visual Studio debugger would simply stop (as if I'd told it to stop) and the app on the device would exit as if the same.

I'll be posting this on the Xamarin forums.