document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. GPSTracker.java
  2. /**
  3.      * Function to get latitude
  4.      * */
  5.     public double getLatitude(){
  6.         if(location != null){
  7.             latitude = location.getLatitude();
  8.         }
  9.          
  10.         // return latitude
  11.         return latitude;
  12.     }
  13.      
  14.     /**
  15.      * Function to get longitude
  16.      * */
  17.     public double getLongitude(){
  18.         if(location != null){
  19.             longitude = location.getLongitude();
  20.         }
  21.          
  22.         // return longitude
  23.         return longitude;
  24.     }
');