Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Andriod Application.....Eclipse Create a mini application that takes either an i

ID: 667714 • Letter: A

Question

Andriod Application.....Eclipse

Create a mini application that takes either an image file or a snap from the camera and display all the Meta-data information alongside the image. Make sure you include the image's Latitude and Longitude values. This metadata is called the EXIF data. For more information on EXIF data please reference the link below.

http://developer.android.com/reference/android/media/ExifInterface.html

As a reminder, when taking an image with the camera, you may use an ImageButton, which when pressed calls the Camera app, takes the picture, and then displays the image as the button's background.

Explanation / Answer

    Request Camera Permission

first u have to check the full details of image after u will take the snap details another u will combination of data

first u have find the image data
    Take a Photo with the Camera App
    Get the Thumbnail
    Save the Full-size Photo
    Add the Photo to a Gallery
    Decode a Scaled Image

In this explains how to capture photos using an existing camera application.

Suppose you are implementing a crowd-sourced weather service that makes a global weather map by blending together pictures of the sky taken by devices running your client app. Integrating photos is only a small part of your application. You want to take photos with minimal fuss, not reinvent the camera. Happily, most Android-powered devices already have at least one camera application installed. In this lesson, you learn how to make it take a picture for you.

Request Camera Permision

If an essential function of your application is taking pictures, then restrict its visibility on Google Play to devices that have a camera. To advertise that your application depends on having a camera, put           <uses-feature> tag in your manifest file

<manifest ... >
    <uses-feature android:name="android.hardware.camera"
                  android:required="true" />
</manifest>

The Android way of delegating actions to other applications is to invoke an Intent that describes what you want done. This process involves three pieces: The Intent itself, a call to start the external Activity, and some code to handle the image data when focus returns to your activity.

Here's a function that invokes an intent to capture a photo.

static final int REQUEST_IMAGE_CAPTURE = 1;

private void dispatchTakePictureIntent() {
    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
        startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);
    }
}

Add the Photo to a Gallery

When you create a photo through an intent, you should know where your image is located, because you said where to save it in the first place. For everyone else, perhaps the easiest way to make your photo accessible is to make it accessible from the system's Media Provider.

The following example method demonstrates how to invoke the system's media scanner to add your photo to the Media Provider's database, making it available in the Android Gallery application and to other apps.

private void galleryAddPic() {
    Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
    File f = new File(mCurrentPhotoPath);
    Uri contentUri = Uri.fromFile(f);
    mediaScanIntent.setData(contentUri);
    this.sendBroadcast(mediaScanIntent);
}