-
Choose "Open an existing Android Studio project" from the welcome screen.
-
Navigate to the directory where you cloned the repository and select the project folder.
-
Click "OK" to open the project in Android Studio.
- Navigate to EnviroCarChallengeApp/app/src/main/res/values/strings.xml.
-
Replace api_key by your MapLibre Api key which you get from MapTiler
-
you can also replace track_id for testing your own track.
- Save the file after making the changes.
-
Create an enviroCar account from within the Android app or the web application, if you already have a acoount go to next step.
-
Start the enviroCar Android app and record a track in your city in GPS-only mode.
-
Upload your track to the enviroCar server from within the Android app.
-
Now go to EnviroCar.org on web Browser get the track id of the recorded path.
-
Now go to EnviroCarChallengeApp/app/src/main/res/values/strings.xml and replace the Track_id Place Holder with your track id.
-
Build the project in Android Studio by clicking on the "Build" menu and selecting "Make Project".
-
Connect your Android smartphone to your computer using a USB cable.
-
Enable USB debugging on your smartphone and ensure it's recognized by Android Studio.
-
Select your smartphone as the deployment target and click on the green play button to deploy the app.
-
Once deployment is complete, you should see the app icon on your smartphone's home screen or app drawer.
-
Open the app on your smartphone by tapping on its icon.
-
Follow the testing instructions provided in the previous section to test the app's functionality.
-
Verify that the track route, origin, and destination markers are displayed correctly on the map.
-
Ensure that clicking on markers displays popup cards with relevant information.
-
Test other features and interactions within the app.