Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GPSTracker.java
- /**
- * Function to get latitude
- * */
- public double getLatitude(){
- if(location != null){
- latitude = location.getLatitude();
- }
- // return latitude
- return latitude;
- }
- /**
- * Function to get longitude
- * */
- public double getLongitude(){
- if(location != null){
- longitude = location.getLongitude();
- }
- // return longitude
- return longitude;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement