I am want to do registration in my app. So i have made all requests to my web service.
I now when user is registered.
Now i need to save somewhere that he is registered that don't give him registration form again.
How to do this ?
Do i need to save somewhere in my sqlite database and every time when app lunches check if he is registered user. Or maybe in app settings i could save this information.
I am new to developing android app and i am searching for the right way.
Thanks all for help.
You could save that with SharedPreferences. Check the link for sample code.
http://developer.android.com/guide/topics/data/data-storage.html#pref.
This data will be removed if the users uninstalls the app or clears all data from system menu.
Edit: If you really want to remember preferences across installs you should try Backup API. http://developer.android.com/guide/topics/data/backup.html
The best solution is to use Android's Account Manager to handle user account. This aproach is the most secure (credentials are not exposed), however it has two drawbacks:
It's a little bit complocated to set up
It requires at least API version 5
Once the user registered you can save in your sqlite database and you have to check for each time when your application launches. But if the user uninstalled the application and tried to reinstall it ll ask for registration again.. In order to avoid this you have to store the information like the device id and the registered details in some servers and also in sqlite database and have to check when the application launches...
Related
I'm creating an application which is going to be active for first 30 days and after that the user should get automatically log out from application itself (as user's account will be deactivated), or is there is any workaround for the same because I can disable accounts from Firebase Console but that doesn't affect any user if they remains logged In.
Mainly I wanted this for Android Studio, I can do the required method through Firebase Database itself but just wanted to know if there is any alternate method available.
If you are asking how to disable a Firebase Authentication user account, that's not possible from within web or mobile application code. You can instead write backend code using the Firebase Admin SDK.
You can disable the account by updating the user and setting the disabled flag to true. Or you can delete the account entirely if you are done with it.
The company that I work for has some small android applications running that communicate with their ERP software lately they requested to authenticate users and have sessions for safety reasons
Instead of integrating the autheticate and session code into every app (6) I want to build an Android app that acts like a dashboard. The app will authenticate the user, create a session and show the available apps on the device that the user can access with their user role.
The problem is I need the know which app requires which user role
I don't want to store this information in the dashboard app sinds that will require me to update the dashboard app each time i create or change an app
I was thinking or using an Content provider but that seems to be a lot of work and redundant since it has to be integrated into every app that I have (6)
So my question, is there a way to get data from apps that can easily be implemented. The data isn't big (only one Integer)
thanks in advance.
Dont know if i am asking a right question but there's a requirement of this feature in or java based web application (used GWT[Google web toolkit])
Application is on cloud , Users access the application from their browser and perform some action and application has a linked database.(MySQL)
Now what need to be done is , If sometime a user is offline , they still need to access some part of the application (From Mobile/Tablets)
save some of their work while being offline.
and next time when user gets Online , they should be able to upload that saved work to our cloud database.
Please give me some hint how can i achieve this , i.e is it possible for my users to access my web application from their Mobile while being offline and also see the latest database data.(at the time when they were last online).
Check out HTML5 Storage Spec of GWT.
I am creating an attendance monitoring app using Android Studio and MAMP server. I have the same MYSQL database connected to both apps. Initially I was creating an app for students and another app for staff. However I think this is not the best way to go about this. Is there any way to set different user privileges so I can just create one mobile app that will give users access to different pages within the app? Thank you
In response to your question and comments. You should have a single table for user and in that table have a column which stores the privilege level of that user. Then for each user when they log into the system you can check what privilege level they have and load the correct resources.
I am currently programming an app that is supposed to get the users' calls and SMSs log and send them to a remote mysql DB.
I have a preferences screen and a checkbox for calls and another for sms logging and I want that when the user clicks in the checkboxes and then saves the preferences clicking a button, the logging starts to work (depending on whether the checkboxes were clicked or not).
My question is, should I implement each of the logging feature in services?
Remote or locals?
I'd like the logging working ALWAYS until the users unticks the checboxes and saves preferences.
Should I send the data to the DB every x hours, or just storing everything in a SQLite DB in Android and then sending everything by the end of the day?
This is my first android app and as you can see I have no idea :)
Thanks everybody for your help!
Cheers
I am finally using a remote service, as I want the service to be running even though the application might not be running, and will just send the data every 24h, so much better.
Thanks for your help!