The SQlite database as its name suggests, is a lightweight database which is used to store the data locally in your Android mobile devices. One can create a simple login and register app using SQlite which can also work as test bench or platform for launching the app for web servers. Let us first create a Database helper class which extends the properties of SQliteOpenHelperClass. The code snippet for DB Helper class "DBHelper.class" is as follows: DBHelper.class
Let us first create main_activity.xml which serves as the register page. This page will have three edit text boxes, username, password and retype password. The code snippet for main_activity.xml is as follows main_activity.xml
The code snippet for MainActivity.java is as follows. MainActivity.java
Now create another activity for Login. The code snippet for activity_login.xml is as follows. activity_login.xml
The code snippet for LoginActivity.java is as follows LoginActivity.java
0 Comments
Leave a Reply. |
All Coding TutorialsArchives
January 2022
Categories |