This Project is a foundation for managing student information within a mobile application. Users can add new student records, view existing records, and delete records as needed. This app utilizes SQLite as the embedded database to store and manage student information.
-
Database Helper Class (
MyDB.java
):- Manages database creation and upgrades.
- Provides methods for inserting, displaying, and deleting student data.
-
Main Activity Class (
MainActivity.java
):- Handles user interactions and communicates with the database helper class.
- Includes buttons for inserting, displaying, and deleting data, and EditText fields for student ID and name.
-
XML Layout File (
activity_main.xml
):- Defines the layout of the main activity.
- Includes UI components such as
TextView
,EditText
, andButton
.
- SQLite Database: Embedded database for efficient data storage.
- Android UI Components: Utilizes EditText, TextView, and Button for a user-friendly interface.
- Android Toast: Provides feedback to users through toast messages.
- ConstraintLayout: Responsive and flexible UI layout.
- Database CRUD Operations: Allows users to manage student records.
-
Insert Data:
- Enter student ID and name.
- Click the "Insert to DB" button.
-
Display Data:
- Click the "Display DB" button to view existing records.
-
Delete Data:
- Enter the student ID to be deleted.
- Click the "Delete from DB" button.
- Open the project in Android Studio.
- Run the app on an Android emulator or device.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License.