Creating Database - android

I am working on a Android App project in which user have two option, Sign In and Sign Up.
I have got few question:
1- In Sign Up Activity, how can I store the data of the user?
2- In Sign Activity, How can I check that the entries enter by the user are correct and the user already have a account by us.
3- In Sign Up Activity, the Data entered by the user should come to me, So that I will able to contact the user of my app.
I searched over the internet, and the outcome is that I have to use SQLite Database.
Kindly guide me about this process.
Thanks in Advance.
p.s like Facebook, we have to sign up for creating new account and sign in, I want to create this type of app.

1- In Sign Up Activity, how can I store the data of the user?
You need to maintain a database for this. Read this tutorial data - storage tutorial
2- In Sign Activity, How can I check that the entries enter by the user are correct and the user already have a account by us
Now, you need to check with your server and do the authentication part. You need to incoporate webservices and use android network modules. network operations
3- In Sign Up Activity, the Data entered by the user should come to me, So that I will able to contact the user of my app
Just keep track of the textview where the user types the uname and pwrd. check the textview apis

Related

How to Check is the user is for the first time in google sign in android

I am building an android application with java but when I am using the google sign-in auth with firebase time I don't know that is the user is already available in firebase auth.
BECAUSE: i want that if the user is not in firebase and just sign up with google then i will show him a screen where he can enter his bio (about) and if the user is already in firebase and sign in later I will not show him that bio screen
Thanks in Advance
It sounds like you're trying to store some profile information about your users in Firestore.
In that case, once the user is signed in, you should check if you already have a profile document for that user in the database. This is easiest if you use the ID of the user as the document ID in Firestore, for example Firebase Authentication's UID, or (if you're not using Firebase Authentication) Google's sign-in's account ID.
If the document exits, you know about the user already. If it doesn't exist, you'll want to send them to the profile screen to enter their bio.
you can store the email of the sigin user in database and on the time of signup you can check that the email is already in database or not.

Android biometrics login

I have set up finger print login on an app, however this has caused a technical issue to arise. Traditionally the user would enter their username and password and click the login button which would verify their credentials against the record inside the database. If successful the database would return the users first name and userId which would be stored in a variable and used through the app.
Now, however when the user logs in with the finger print, there is no database transaction anymore so I don't get to pull back the user details. How are app makers working around this? When I log in with other apps using the finger print sensor the app still has to verify my account and interact with the database even without my username or password. Any thoughts on this matter would be greatly appreciated.
My solution to this was to disable fingerprint login until the user logs in the traditional way the first time. Using a boolean to track if its a first login or not. During the first login the database transaction occurs and I simply store all the users details I need i shared preferences meaning further db transactions are not necessary.
When the user opens the app for the second time they can use the finger print login from now on.

Am I able to use a users device sign in options to login to app?

I'm still new to App dev. I have have seen some apps that use the device pin/lockscreen pattern to authenticate the user without making the user sign in again. Is there an API for doing this? The only thing close that I can find is logging in with google. Thanks.
Correct me if i am wrong. You want something like if user is logined than you dont want to display login screen again.
For that you have to follow this approach.
Allow user to enter email and password in the input fields.
Store them in shared_preference ( local android storage ) with is_logined = true as login status.
Next time whenever you will come in this page, you will check weather user is logined if yes show different page else show login page.

Android Studio Login to Registration Form

I'm fairly new with Android Studio and I'm current working with a Login Form for my mobile application. However, I want to make the login page "register" by adding first time users into the database and having that user always access the application without relogging rather than constantly checking if the user's account is stored and requires a login every time.
Can someone share me helpful documents or codes on this matter. Thanks!
If you want your users to remain logged into the application everytime then one way is to use Shared Preferences in android. Shared Preferences will save the users credentials in a local storage and the user need not to enter them everytime.
You can achieve this via Shared Preference.You can save the user info and retrieve it next time when the app is opened and check whether the user is already registered or not and his details etc.
Here is a example of Shared Preference.

how to create Login Activity When multiple users Access there own data

I am developing an App which is hostel management app
that have login activity consist of username,password login button , and create account , when the users click on create account they can create account and then can login.but if any one create account he can access the same as the last user access. so i want to hide data from new users. what i do. I am using sqlite database in my app...
I am not asking about php and mysql i am asking about sqlite which is pure android app not online
OR
Can u till me to create only one account mean only one account will be created in create account activity and will login through that account ,.No other account will be created
you haven't performed enough search on google.
Following are few examples which will help you achieve what you want.
1. tutorialsPoint
2. learn2crack
You will have to combine what you learn in these both sites are create your app accordingly.
I hope this helps you.

Categories

Resources