I am using this Code to generate an camera intent
Log.i(TAG, "starting Camera action");
appData.setApplicationMode( ApplicationModeEnum.PICTURE_FIRST_MODE.name() );
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, this.getApplicationContext().getDir("images", MODE_PRIVATE));
In the ActivityResult I retrieve the uri of the tak
I'm using the standard camera intent to take a photo:
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(takePictureIntent, actionCode);
And then in onActivityResult()
Bundle extras = intent.getExtras();
Bitmap imageBitmap = (Bitmap) extras.get("data");
mImageView.setImageBitmap(imageBitmap);
Bitmap is a thumbnail.
My camera intent has a glitch. It saves the pictures properly to the storage, but it doesn't return the filepath to my activity.
I am working with Samsung Galaxy Tab 2 running Android 4.1.1 (Jelly-bean), I recently upgraded from 4.0.4 (Ice Cream Sandwich).
I used the ACTION_VIDEO_CAPTURE action of MediaStore to capture videos in my activity.
Uri uriSavedVideo = Uri.fromFile(output);
Intent videoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
videoIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
videoIntent.put
hi there i have this code and how can i convert image into bitmap ?
I have that app that takes a picture and stores it to the SD card, however every picture I take it extremely compressed and very low quality. I compress it with full quality so I'm not sure why it's doing this. Any suggestions?
I have to send images over the network with specified resolutions.
in my android application, when i click on button new activity starts and retrieves image info from sdcard n display it.when i click one of thumbnail of image i want to send that image to 1st activity.how can i do this using startactivityforresult.how to store image path and send it back to 1st activity.i want array for storing uri off all images as i'm listing them dynamically
in 1st activty-
Is there a way to add the option to start camera and upload image from it in a webview.
See my entire code here. Below is the code block that allows to open a dialog box to upload image from gallery.