2012-12-09 62 views

回答

0

Apache有一個用於讀寫EXIF標籤的公共項目:Sanselan。它包括類似於此的示例代碼:

 { 
      // Example of how to add/update GPS info to output set. 

      // New York City 
      double longitude = -74.0; // 74 degrees W (in Degrees East) 
      double latitude = 40 + 43/60.0; // 40 degrees N (in Degrees 
      // North) 

      outputSet.setGPSInDegrees(longitude, latitude); 
     } 

     // printTagValue(jpegMetadata, TiffConstants.TIFF_TAG_DATE_TIME); 

     os = new FileOutputStream(dst); 
     os = new BufferedOutputStream(os); 

     new ExifRewriter().updateExifMetadataLossless(jpegImageFile, os, 
       outputSet); 

     os.close(); 
     os = null; 
+0

如果我需要從GPS設置位置? –

+0

http://developer.android.com/training/basics/location/currentlocation.html – 323go

相關問題