Question: please provide a detailed step by step with code to Develop an Android application that demonstrates understanding of basic Android development using Kotlin, Jetpack Compose,
please provide a detailed step by step with code to
Develop an Android application that demonstrates understanding of basic Android development using Kotlin, Jetpack Compose, Material Design and MVVM architecture.
Description: Create an Android app named "MyContacts" that allows users to manage their contacts. The app should include the following features:
Main Activity:
Displays a logo and an image button.
When the user clicks on the image button, navigate to the second activity.
Second Activity:
Allows users to add a new contact with fields for name, phone number, and email.
Uses either checkboxes or radio buttons to select the contact type eg Friend, Family, Work Use checkboxes if your first name starts with AN otherwise use radio buttons.
Displays a Snackbar with the entered contact details upon clicking the "Add Contact" button.
Displays a list of added contacts using a LazyColumn.
Requirements:
Main Activity UI and Event Handling:
Use Jetpack Compose for the UI components.
Implement navigation to the second activity.
Second Activity UI Event Handling, MVVM Architecture:
Use Jetpack Compose for UI components.
Implement form fields for entering contact details.
Implement checkboxes or radio buttons for contact type selection.
Display the entered contact details in a Snackbar.
Use ViewModel for managing UIrelated data.
Use LazyColumn to display the list of added contacts.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
