This repository contains two Android applications demonstrating the use of location-based services and address geocoding in Android. The first app retrieves and displays the current geographical location of the user, while the second app calculates the distance between two addresses. Both apps use the AirLocation library and the Geocoder class.
π Key Features:
π Location Retrieval (App 1)
- Uses the AirLocation library to request and obtain the device's current location.
π Address Geocoding
- Utilizes the Geocoder class to convert latitude and longitude into a readable address.
β οΈ Error Handling
- Displays error messages in case of failure to obtain the location or address.
π Libraries Used:
π AirLocation
- Simplifies location retrieval by providing easy access to the deviceβs location.
πΊ Geocoder
- Converts location coordinates into a human-readable address and calculates distances.
π Code Summary (App 1: Location Retrieval):
- AirLocation is initialized and started when the user clicks a button.
- Upon successful location retrieval, latitude and longitude are displayed.
- The address is fetched using Geocoder and displayed alongside the location coordinates.