This Android project is a tutorial covering various functionalities such as implicit and explicit intents, launching the camera to capture an image, ViewModel usage, and basic UI components.
- MainActivity: This activity displays a simple UI with a TextView showing a count and a Button to increment the count using a ViewModel.
- MainActivityData: ViewModel class to handle the count logic.
- HomeActivity: This activity serves as the launcher activity and contains buttons to demonstrate different functionalities.
- Button 2: Launches MainActivity.
- Button 3: Opens the dialer with a predefined number.
- Button 4: Sends an SMS with a predefined number and message.
- Button 5: Opens a web page (Facebook in this case) in a web browser.
- Button 6: Launches an email intent with predefined email address, subject, and body.
- Button 7: Launches the camera to capture an image and displays the captured image in an ImageView.
Clone the project and run it on an Android device or emulator to explore the implemented functionalities.
To run this application on your Android device, follow these steps:
- Clone this repository to your local machine
- Open the project in Android Studio.
- Build and run the project on an Android emulator or a physical device.
Contributions are welcome! If you find any bugs or want to add new features, please feel free to submit a pull request.
This project is developed as a part of a tutorial series.