TAG_GPS_PROCESSING_METHOD: nullExif tags are not available error in Android
<p>Even though I give it a file path of an image that has location, I still get null in location.</p>

<pre><code>try {

            ExifInterface exifInterface = new ExifInterface( imgfilepath);
            float[] output = new float[2];
        Boolean b =    exifInterface.getLatLong(output);
        Log.d("Does location exist?",String.valueOf(b));

           exif += "\nIMAGE_LENGTH: " + exifInterface.getAttribute(ExifInterface.TAG_IMAGE_LENGTH);
           exif += "\nIMAGE_WIDTH: " + exifInterface.getAttribute(ExifInterface.TAG_IMAGE_WIDTH);
           exif += "\n DATETIME: " + exifInterface.getAttribute(ExifInterface.TAG_DATETIME);
           exif += "\n TAG_MAKE: " + exifInterface.getAttribute(ExifInterface.TAG_MAKE);
           exif += "\n TAG_MODEL: " + exifInterface.getAttribute(ExifInterface.TAG_MODEL);
           exif += "\n TAG_ORIENTATION: " + exifInterface.getAttribute(ExifInterface.TAG_ORIENTATION);
           exif += "\n TAG_WHITE_BALANCE: " + exifInterface.getAttribute(ExifInterface.TAG_WHITE_BALANCE);
           exif += "\n TAG_FOCAL_LENGTH: " + exifInterface.getAttribute(ExifInterface.TAG_FOCAL_LENGTH);
           exif += "\n TAG_FLASH: " + exifInterface.getAttribute(ExifInterface.TAG_FLASH);
           exif += "\nGPS related:";
           exif += "\n TAG_GPS_DATESTAMP: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_DATESTAMP);
           exif += "\n TAG_GPS_TIMESTAMP: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_TIMESTAMP);
           exif += "\n TAG_GPS_LATITUDE: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE);
           exif += "\n TAG_GPS_LATITUDE_REF: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE_REF);
           exif += "\n TAG_GPS_LONGITUDE: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_LONGITUDE);
           exif += "\n TAG_GPS_LONGITUDE_REF: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF);
           exif += "\n TAG_GPS_PROCESSING_METHOD: " + exifInterface.getAttribute(ExifInterface.TAG_GPS_PROCESSING_METHOD);

            float[] LatLong = new float[2];
                  if(exifInterface.getLatLong(LatLong)){
                   exif += "\n latitude= " + LatLong[0];
                   exif += "\n longitude= " + LatLong[1];
                  }else{
                   exif += "Exif tags are not available!";
                  }
                  if (output != null)
                Log.d("The location of the image is:",exif);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
</code></pre>
