I Have Login screen in android including username & password. if login successful then it goes to next activity(i.e. Save Action.Class).
My Question is that if i enter username & password of admin level it should Display All The Text boxes in Save Action Activity & Should Save it Successfully.
but if i enter username & password of employer level it should not display some text boxes & should not save it.
In Short i Want to give Role In my App. What I Have to do. Please Help me Thanks in Advance.
You would need to implement your own ACL (Access Control List). There is no preexisting builtin architecture which would simplify your needs to my knowledge.
Related
Okay so I’m trying to build a simple confirmation page and failing lol. Please help.
All the app is supposed to do is take a user to a form, and they fill it in. Go to a loading page (optional) , then a confirmation page.
Example:
Form requesting for name,address and color of item,and email address.
Then confirmation page says “Thank you [name] your order for a [color] shirt will be on your way. Check out your email for further details.
Note:
I don’t need to personally get the information typed in, I’m just starting out and would like to know how to do this first 😂.
What you can do is to store the form data at some variables and inject those variables when you construct the confirmation screen
I am trying to save user phone, email, password, update password using android autofill framework.
I am using different fragments for all the above values. I tried to forcefully save values using autofillframework commit method, but that doesn't work.
I am able to save username(email) and password in two consecutive fragments and autofill popup appears for this scenario but when i try to update password its doesn't save or update the password for the same.
I want to save user details for autofill hints what should i do for the same.
Ok, I'm stuck with this problem. I want the "administrator" to be able to add points to a users account. What I want to happen is the administrator has to enter a password to be able to award points to the user. I know that this will have to be in popup format, but I'm just not sure how to do that. So basically my question is: How do I password protect a certain Activity inside of a class?
There is no functionality that will this automatically. You can write manual code for a dialog to pop up, accept a password, have an AsyncTask that will verify that password against your server, then add the points or re-route to the desired activity.
I was working on an android app and trying to create a login activity and I asked myself one thing. Of course it is possible create a login activity with the possibility of storing the username/password with all the security problems concerned, but is it possible create an activity in which a user can put his login name and automatically the app retrieves the password? It would be great!
well, Macho its not good stuff because anyone can sniff your username since it is not type of password. But as you ask, it can be possible as user enters username and unfoccussed the edittext you can fetch password from sharedpreferences or may be from sqlite database and show in password edittext.
Yes that is possible. You should be aware however that if the phone is lost or stolen, the new "owner" of that phone could be automatically logged on.
I am a newbie in android and trying hard to get on to it. I have searched a lot to find a better and reliable way to do what I want in my application. But didnt get lucky to find specific information. Can anybody tell me how to create a simple login page including form submission text input fields like name , address, age , sex and password and retype password etc. I want to have a "Create Profile" link on the Emulator Home Screen. Once the user clicked on it will direct the user to the profile creation page. I want to create login IDs or profiles many as I want, submit the form to my emulator, store them in a database and retrieve the information in a new page named "Profile Home page" by providing the password. So in a way when the user click on the Submit Form button then immediately a window will appear to type and enter the password. If the password is right then the "Profile Home page" will appear. Ofcourse the user should be able to edit their personal information. Is there any kind buddy who can help me out this? Any suggestion, ideas or clues are highly appreciated.
#Pervanee All you need to do is create simple activities and switch them based on the events. As andro said whatever you are asking for is a full application so break it down into screens and then find out how you can create each one. Plenty of code for what you ask will be there if you do some search. :)