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. :)
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 a beginner in Android Development (using Java). I am trying to built an App with a single Login Activity Page where there are two types of users - 1. Normal User 2.An Admin . So depending on the user I want the Login Button to redirect them to their respective activity pages.
I have found 2 ways -
By getting the input text from the Username edit text field in login page and using if else condition .
Doing via querying the Database(MySQL & php)
Which of them would be a better choice ? And can anyone provide a code snippet for it ?
According to me best way would be to add a user type in the user info table on the basis of which you can identify the user type on login form just by the response from the database
Working code
It would be better to add RadioGroup for both Normal User and Admin as User can be Admin or Normal.
You can add RadioGroup with 2 Radio Buttons, so user can choose among them,
This Way is better because you dont have to put extra load on your sever for Iterating among both.
Even better would be having different Tables for Normal users and Admin for quick responses.
You can follow this Medium Tutorial for Radio Buttons
Android: Selection Controls
I finished developing my client side application in Android.
I want to create a sign-up page and Page Login.
When the user login my app he selects several categories.
I want to show all the categories that users select a certain page. Please give me some tips for this. Do I need server side for this? If I do, where am I supposed to start? Thanks for help and sorry for weak English.
Unless you need to get the categories from the server, then this seems like something on the client side. In HTML, you can show a bunch of categories with < select >, which you can see here: http://www.w3schools.com/tags/tag_option.asp
If you're doing it in an Android app, you can use Spinner.
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.
So I'm building an app that allows input from the user with their voice. I have built a webview and i have all the code to recieve voice input and transcode that into text. But now i want to be able to paste the text that the user says that i have already into whatever text box that is selected on the screen. For instance if the user is on google and clicked on the search box and says the words "stackoverflow", my app recieves the string containing "stackoverflow", now how do i paste that into the text box?
Thanks and let me know if i can give any further clarification
Unless you knew exactly what page the user had opened and exactly what the ID of the element you wanted to populate was, there's no way to accomplish what you're describing (if I understand your request correctly). Or are you asking how to populate an EditText that's in your Activity (I'm assuming that's NOT what you're asking, but just in case).