Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.media.ExifInterface;

import java.io.IOException;

public class Main {
    public static boolean hasGpsTag(String file) {
        try {
            ExifInterface exifInterface = new ExifInterface(file);
            // north and south
            if (exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE_REF) == null)
                return false;
        } catch (IOException e) {
            // TODO Auto-generated catch block
            return false;
        }
        return true;
    }
}