File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -711,6 +711,13 @@ switchButton.setOnSwitchListener(new SwitchButton.OnSwitchListener()
711711// this will check whether gps is enabled or not
712712GeoLocation . isGPSEnabled(Context context); // returns true or false
713713
714+ // if you want to capture the address and latitude and longitude
715+ // after getting access to locations permission
716+ // then use *onRequestPermissionsResult* of the activity
717+ // and re-call this class as follows.
718+ // considering *geoLocation* is declared globally
719+ geoLocation = new GeoLocation (YourActivity . this );
720+
714721// following code is for getting latitude and longitude
715722double latitude = geoLocation. getLatitude();
716723double longitude = geoLocation. getLongitude();
@@ -739,13 +746,6 @@ String thoroughFare = geoLocation.getThoroughFare();
739746
740747String subThoroughFare = geoLocation. getSubThoroughFare();
741748
742- // if you want to capture the address and latitude and longitude
743- // after getting access to locations permission
744- // then use *onRequestPermissionsResult* of the activity
745- // and re-call this class as follows.
746- // considering *geoLocation* is declared globally
747- geoLocation = new GeoLocation (YourActivity . this );
748-
749749```
750750
751751### FontHelper Class
You can’t perform that action at this time.
0 commit comments