This code shows GPSDemoActivity with GPS latitude,
longitude, geocoding into address,
sharing location as text, showing location on google maps
and vibration effect on button click.
Layout File: https://drive.google.com/file/d/1fFkpk2isKM9L5sxRI-6h6_BqrJrumEAQ/view?usp=sharing
Java File: https://drive.google.com/file/d/1NgrzgDehmvjCsIP7hRirbMV9PLN8Apf1/view?usp=sharing
Another Java File: https://drive.google.com/file/d/1ZCVdgb9JQSKrJ-BQ1Hjd9BF7rZUBUm8T/view?usp=sharing
Manifest: Please declare Access Fine Location, Access Coarse Location, Internet and Vibration permissions.
Images: 2 icon images are used in layout file which should be present in drawable folder.