LocoMoto is an Android application that has Uber-like features and is similar to a taxi service.
- Rider: You can request a ride while looking at your location (which is updated very frequently) on a map. Once you click the 'Request Ride' button, your request is stored on the online database. You also have the option to cancel your request, which will in turn remove it from the database. Any drivers in the area can see your request.
- Driver: You can view available requests from other riders, which is all displayed in an Android ListView, which is essentially a vertical table with clickable elements. The requests are in order from closest to farthest. Once you click on a request, you see the rider's postition relative to yours on a map. Accepting the request brings up a navigation dialog to the rider's position.
- To store all the data, the application uses a service called Cloudboost. The app id on the database is 'ktdffagvxbnq'. With this, alongside the client key, you can access the database using specific commands.
- The name of the package is "com.akashbhave.locomoto", which can be seen in the 'Apps' tab of the Android Settings.
- This application is compatible with Android versions 4.1 (Jelly Bean, API 16) and up, but it recommended for Android versions 5.0 (Lollipop, API 21) and up.
- You must have an Internet connection at all times.
- A GPS connection is optional.
The Java files are located here, in the 'java' directory. These files are in the .java file format.
- MainActivity.java: Reponsible for the signup/login part of the app, doesn't load if you have already saved your role on the device.
- YourLocation.java: Mainly used while in the 'rider' role. Contains a Google Map and some buttons on top.
- ViewAvailable.java: Used while in the 'driver' role, lets you see all the current requests from other riders in order of nearest to farthest from your location.
- ViewRiderLocation.java: Used when looking at the rider's position relative to yours in the 'driver' role. You can also navigate to the rider's position using Google Maps, which is prompted.
The layout files are located here, in the 'layout' directory. These files are in the .xml file format. Here you can find the layout of the UI (User Interface).
- activity_main.xml and content_main.xml: Responsible for the layout of the "MainActivity.java" page, or the signup/login part of the app.
- activity_your_location.xml: Responsible for the layout and interface of the rider's map portion of the app.
- activity_view_available.xml and content_view_available.xml: Responsible for the driver's ListView of the app, which also will contain the map of the locations.
- activity_view_rider_location.xml: Responsible for the map of the driver and the rider, in the 'driver' role.
- NOTE: Some activities (like ViewAvailable) have both activity files and content files. Some activities (like YourLocation) have only the activity file, which has all the information in one file.