Note that there are some explanatory texts on larger screens.

plurals
  1. PO"FATAL EXCEPTION: GLThread 11" on android froyo 2.2
    text
    copied!<p>I've googled a lot and found a few threads on stack overflow but it didnt help out. Im trying to use the built-in camera of Android by invoking an Intent. This works on 2.1 but on 2.2 i get the "FATAL EXCEPTION: GLThread 11" exception.</p> <p>I read this topic <a href="https://stackoverflow.com/questions/3935193/camera-crashes-in-android-2-2">Camera crashes in Android 2.2</a></p> <p>And the google thread <a href="http://code.google.com/p/android/issues/detail?id=7909" rel="nofollow noreferrer">http://code.google.com/p/android/issues/detail?id=7909</a></p> <pre><code> String fileName = Environment.getExternalStorageDirectory().getAbsolutePath() + "temp-" + System.currentTimeMillis() + ".jpg"; ContentValues values = new ContentValues(); values.put(MediaStore.Images.Media.TITLE, fileName); values.put(MediaStore.Images.Media.DESCRIPTION,"Image capture by camera"); imageUri = ctx.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); //intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); intent.putExtra(MediaStore.EXTRA_OUTPUT, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); //http://marakana.com/forums/android/examples/39.html ctx.startActivityForResult(intent, REQUEST_CODE); </code></pre> <p>This is the code that i use to invoke the camera. Straightforward i guess. But when i take the picture and hit the 'save'/'accept' button the app crashes in Android 2.2. In my opinion it's standard code and functionality. How can i use the built-in camera. I've tried several things. </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