Study: SQlite Database, RecyclerView, JSON Format, ListView, RecyclerView, Google Map, HttpURLConnection, CoroutineScope
Create an application to create JSON URL for Contact which have field(id, Name(First Name, Last Name), Phone No, Address) and should be minimum five contact details & display received contact data in RecyclerView. Add Google Map Activity which displays location which is received in JSON Data in google Maps activity and set the zoom level to 10.
To Generate JSON Data, Refer: https://app.json-generator.com/
Create MainActivity according to below UI design.
Use link generated from website for JSON Data
Create MapActivity by using this instructions.
Create Class Person with member Variables like id, Name, Phone No, Email Id, Address, Latitude, Longitude. This class should be inherited from Serializable class.
Generate JSON data format according to below image.
Use RecyclerView or ListView Adapter
Add Internet Permission in Manifest file
Create Class HttpRequest for communicating with Web URL
Consider Android Application created by using JSON by above instructions and add Sqlite feature such that it is storing data of persons which is received in JSON Format. There should be two buttons: after pressing first button then data of persons loads from sqlite database. After pressing second button, it receives data from network database in JSON format and loads data in ListView or RecyclerView.
Create MainActivity according to below UI design.
Follow steps and Copy codes from Practical-10
Create Class DatabaseHelper for Sqlite Database
Create class to store Companion Object for Sqlite database table name, column names.
Add some supported function in MainActivity for Sqlite database.
Add main_menu in menu folder of resource folder.
Add main_menu.xml file to toolbar of Activity as Option menu.
Add two buttons with vector icons.
Call appropriate method of mainactivity after pressing buttons of toolbar.