안드로이드 개발 질문/답변
(글 수 45,052)
아래와 같이 gps 정보를 저장할려고 했습니다.
Camera.Parameters parameters = m_Camera.getParameters();
parameters.setGpsAltitude(GpsAltitue);
parameters.setGpsLatitude(GpsLatitude);
parameters.setGpsLongitude(GpsLongitude);
parameters.setGpsTimestamp(System.currentTimeMillis());
m_Camera.setParameters(parameters);
m_Camera.takePicture(null, null, m_CameraJpegCallback);
사진 촬영 후에.. 값을 읽어와 출력해 보니.. null값이 들어있습니다.
String myAttribute="Exif information ---\n";
myAttribute += getTagString(ExifInterface.TAG_DATETIME, exif);
myAttribute += getTagString(ExifInterface.TAG_FLASH, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LATITUDE, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LATITUDE_REF, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LONGITUDE, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LONGITUDE_REF, exif);
myAttribute += getTagString(ExifInterface.TAG_IMAGE_LENGTH, exif);
myAttribute += getTagString(ExifInterface.TAG_IMAGE_WIDTH, exif);
myAttribute += getTagString(ExifInterface.TAG_MAKE, exif);
myAttribute += getTagString(ExifInterface.TAG_MODEL, exif);
myAttribute += getTagString(ExifInterface.TAG_ORIENTATION, exif);
myAttribute += getTagString(ExifInterface.TAG_WHITE_BALANCE, exif);
사진 촬영시 위에 처럼 파라미터를 지정해서, gps 정보를 저장하는 방식이 맞는건가요??
Camera.Parameters parameters = m_Camera.getParameters();
parameters.setGpsAltitude(GpsAltitue);
parameters.setGpsLatitude(GpsLatitude);
parameters.setGpsLongitude(GpsLongitude);
parameters.setGpsTimestamp(System.currentTimeMillis());
m_Camera.setParameters(parameters);
m_Camera.takePicture(null, null, m_CameraJpegCallback);
사진 촬영 후에.. 값을 읽어와 출력해 보니.. null값이 들어있습니다.
String myAttribute="Exif information ---\n";
myAttribute += getTagString(ExifInterface.TAG_DATETIME, exif);
myAttribute += getTagString(ExifInterface.TAG_FLASH, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LATITUDE, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LATITUDE_REF, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LONGITUDE, exif);
myAttribute += getTagString(ExifInterface.TAG_GPS_LONGITUDE_REF, exif);
myAttribute += getTagString(ExifInterface.TAG_IMAGE_LENGTH, exif);
myAttribute += getTagString(ExifInterface.TAG_IMAGE_WIDTH, exif);
myAttribute += getTagString(ExifInterface.TAG_MAKE, exif);
myAttribute += getTagString(ExifInterface.TAG_MODEL, exif);
myAttribute += getTagString(ExifInterface.TAG_ORIENTATION, exif);
myAttribute += getTagString(ExifInterface.TAG_WHITE_BALANCE, exif);
사진 촬영시 위에 처럼 파라미터를 지정해서, gps 정보를 저장하는 방식이 맞는건가요??