IT. Expert System.

Android Reference

ExifInterface


android.media

Class ExifInterface



  • public class ExifInterface
    extends Object
    This is a class for reading and writing Exif tags in a JPEG file.
    • Constructor Detail

    • Method Detail

      • getAttribute

        public String getAttribute(String tag)
        Returns the value of the specified tag or null if there is no such tag in the JPEG file.
        Parameters:
        tag - the name of the tag.
      • getAttributeInt

        public int getAttributeInt(String tag,
                          int defaultValue)
        Returns the integer value of the specified tag. If there is no such tag in the JPEG file or the value cannot be parsed as integer, return defaultValue.
        Parameters:
        tag - the name of the tag.
        defaultValue - the value to return if the tag is not available.
      • getAttributeDouble

        public double getAttributeDouble(String tag,
                                double defaultValue)
        Returns the double value of the specified rational tag. If there is no such tag in the JPEG file or the value cannot be parsed as double, return defaultValue.
        Parameters:
        tag - the name of the tag.
        defaultValue - the value to return if the tag is not available.
      • setAttribute

        public void setAttribute(String tag,
                        String value)
        Set the value of the specified tag.
        Parameters:
        tag - the name of the tag.
        value - the value of the tag.
      • saveAttributes

        public void saveAttributes()
                            throws IOException
        Save the tag data into the JPEG file. This is expensive because it involves copying all the JPG data from one file to another and deleting the old file and renaming the other. It's best to use setAttribute(String,String) to set all attributes to write and make a single call rather than multiple calls for each attribute.
        Throws:
        IOException
      • hasThumbnail

        public boolean hasThumbnail()
        Returns true if the JPEG file has a thumbnail.
      • getThumbnail

        public byte[] getThumbnail()
        Returns the thumbnail inside the JPEG file, or null if there is no thumbnail. The returned data is in JPEG format and can be decoded using BitmapFactory.decodeByteArray(byte[],int,int)
      • getLatLong

        public boolean getLatLong(float[] output)
        Stores the latitude and longitude value in a float array. The first element is the latitude, and the second element is the longitude. Returns false if the Exif tags are not available.
      • getAltitude

        public double getAltitude(double defaultValue)
        Return the altitude in meters. If the exif tag does not exist, return defaultValue.
        Parameters:
        defaultValue - the value to return if the tag is not available.
      • getDateTime

        public long getDateTime()
        Returns number of milliseconds since Jan. 1, 1970, midnight. Returns -1 if the date time information if not available.
      • getGpsDateTime

        public long getGpsDateTime()
        Returns number of milliseconds since Jan. 1, 1970, midnight UTC. Returns -1 if the date time information if not available.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 78 / 96389443. Delta: 0.03673 с