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: 667731 • 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

The metadata extraction library by Drew Noakes works well for extracting EXIF tags on earlier Android platform versions, with a slight modification. I am using it on Android 1.6 to extract tags from JPEG images.

You will need to download and build the source code yourself, and package it with your app. (I'm using release 2.3.1.) Make the following changes to com.drew.imaging.jpeg.JpegMetadataReader:

Remove the following import statement:

import com.sun.image.codec.jpeg.JPEGDecodeParam;

Delete the following method (which you won't need on Android):

public static Metadata readMetadata(JPEGDecodeParam decodeParam) { ... }

Remove the com.drew.metadata.SampleUsage class, which references the method deleted above. Also remove all of the test packages.

That's all there is to it. Here's an example of using the JpegMetadataReader to extract a date-time tag from a JPEG image stored on the SD card: