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.
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 have a pretty basic app that uses Firebase.io for user authorization. I've found some things on how to set up so you can recognize returning users and start them on a different screen as first time users by setting a Boolean value in getSharedPreferences.
I've seen apps that do this, like Discover (a banking app) allows you to set up a 4 digit pin to login with instead of always entering your username and password.
Does anyone know how this is achieved, where I can look for a tutorial or more info on it?
My first idea was that you would store the pin in getSharedPreferences but I couldn't find anything about that and I'm not sure how secure that would be.
i'm new on using Web Service in Android. Web Service needs a username and password, so i give this info in code (amateur). But i don't want to reach to this info by any person by any decompile methods. What would you recommend ? thanks
You can make start login screen and directly tell user that he should pass authetification checking.
So first time user input login and password and then you generate unique string and give this back to client. Then every time he want to get data from your server he should send you this autetifaction string in header.
Maybe you just saving this sessiong string in your internal storage and when the app starts checking if it exists. If no you should show your login screen again.
But if user want he still can steal this info from device.
If you don't want to make this you can try to make hacking harder though.
How to avoid reverse engineering of an APK file?
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'm here today asking someone if they know a way to make a set up screen on first start up.
Here's the scenario: When someone downloads my app and uses it for the first time, it has to show a method where users make a password. On subsequent uses, I don't want it to be shown anymore. Does anybody know how to do this?
You can use the SharedPreferences for this purpose.
At the start of your application, check if the key "myKey+versioncode" is present or not in the SharedPreferences. If it not stored, then it means your application has not bee started yet, let the user create his/her password. Once the password is created, add the SharedPreferences "myKey+versioncode" with any value you like, and next time you will find this SharedPreferences, so it means the user already started the application and created its password.
However be careful about the "versionning" of this key, you might also want to keep a single key instead of one per version of your application.
Edit: Concept found at the time I was looking for EULA inplementation, here: Simple EULA implementation for Android