Make only one table eq. tblUser
add extra column say something like userType
. If user is Doctor then insert 1 else 0 in that column.
While queering back you will get userType
of that user. Now you can decide which activity should be open. I have added small pseudo code please understand it carefully.
pseudo code
//some method like this you need to create.
String userType = getUserType()
if(userType == 0) {
//Open normal user activity
} else {
//open doctor activity
}
0
solved how can I do same activity login for these two tables in android