Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I think that this blog post I wrote on this matter can be really helpful to you:</p> <p><a href="https://blog-emildesign.rhcloud.com/?p=590" rel="nofollow">Guide: Android: Use Camera Activity for Thumbnail and Full Size Image</a></p> <p>The titles explains the content. Go over it and tell me if you have a problem after reading it.</p> <p>what important to you is the full size image part.</p> <p><strong>UPDATE:</strong> The problem you are facing right now:</p> <pre><code> FAILED BINDER TRANSACTION ERROR </code></pre> <p>is not related to the way you get your image, but to the image it self, quoting android developer:</p> <pre><code> The most common reason for this error is a too large IPC </code></pre> <p>source: <a href="https://groups.google.com/forum/#!topic/android-developers/KKEyW6XdDvg/discussion" rel="nofollow">https://groups.google.com/forum/#!topic/android-developers/KKEyW6XdDvg/discussion</a></p> <p>IPC (stand for: <strong>Inter-Process Communication</strong>) is basically the way proccesses in android comunicated, you can read more here:</p> <p><a href="http://www.slideshare.net/jserv/android-internals-30176596" rel="nofollow">http://www.slideshare.net/jserv/android-internals-30176596</a></p> <p>And the problem you are facing derived most probably baecase your image is too big.</p> <p>Back to the guide I posted, you have there this peace of code:</p> <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) { //Check that request code matches ours: if (requestCode == CAPTURE_IMAGE_FULLSIZE_ACTIVITY_REQUEST_CODE) { //Get our saved file into a bitmap object: File file = new File(Environment.getExternalStorageDirectory()+File.separator + "image.jpg"); Bitmap bitmap = decodeSampledBitmapFromFile(file.getAbsolutePath(), 1000, 700); } </code></pre> <p>}</p> <p>for this line of code:</p> <pre><code> Bitmap bitmap = decodeSampledBitmapFromFile(file.getAbsolutePath(), 1000, 700); </code></pre> <p>try to provide a smaller dimmensions, some thing like:</p> <pre><code> Bitmap bitmap = decodeSampledBitmapFromFile(file.getAbsolutePath(), 100, 70); </code></pre> <p>see if this fixes your problem, and then you can play with those parameters to get your best result.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload