Skip to content

Commit 4035dfe

Browse files
authored
Update README.md
1 parent 9124e73 commit 4035dfe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,13 @@ switchButton.setOnSwitchListener(new SwitchButton.OnSwitchListener()
711711
// this will check whether gps is enabled or not
712712
GeoLocation.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
715722
double latitude = geoLocation.getLatitude();
716723
double longitude = geoLocation.getLongitude();
@@ -739,13 +746,6 @@ String thoroughFare = geoLocation.getThoroughFare();
739746

740747
String 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

0 commit comments

Comments
 (0)