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
Related
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 am trying to allow users to tag multiple users and trying to figure out how to go about it?
I have thought of the following options:
Option 1:
-listview that pops up as a user types in text with matching results
cons: have to constantly search the server for matching users in the followers/following array
Option 2:
-use usernames without pop up and have users have to include the exact correct username spelling with the ability to look at following/followers on same page
cons: user has to make sure they type the exact correct username and no suggestions
Option 3:
-users press a choose button that takes them to their followers/following list and clicking on a username adds that user
cons: user does not have the ability to search for a name
Option 4:
-same as 3 but with a search in the followers/following list that will end up searching the server if not all the followers and following have been stored locally
cons: hitting server for searches constantly
I would go for Option 1. You can retrieve only the first few results of your query; if desired username is not in the list, then the user is going to type another letter. I'd say that a single tag would be finalized in 2-4 letters.
That doesn't seem so hard to me for servers to stand, and is the best option for the user. It is, as a user, what I would like to have.
The only alternative seems to me Option 5. asynchronously retrieve all following/followers from server, and meanwhile let the user search through this local list.
I want to display my facebook online friends and offline friends suppurate.But i don't know how to display.But I am getting all my facebook friends into list in my application.
Any one please help me.....How to display online and offline friends suppurate.
First - use the fb api. get the friends.
Second - show the list in beautiful Ui component or what ever.
So I understand that you have done the first, right?
If so, then what stops you to make some container and push back dynamically to it labels for example. After this you can try some more beautiful solution how I sad..
try explain more what you've done... Be more specific, please. :)
EDIT 1
Here you are: https://developers.facebook.com/docs/reference/fql/user
Use that:
online_presence
The user's Facebook Chat status. Returns a string, one of active,
idle, offline, or error (when Facebook can't determine presence
information on the server side). The query does not return the user's
Facebook Chat status when that information is restricted for privacy
reasons
EDIT 2
May be you need a loop all your friends and for each of them execute the query
SELECT online_presence FROM user WHERE username = the_friend_from_list
This is a pseudocode but I'm sure you can handle it. :)
I have an Activity that has various EditText boxes and Spinners that the user will fill out in order to receive a quote. This application will be used by our outside sales team and the information will be emailed to our inside team to process the quote. What is the best way to capture the information from this Activity and email it?
The way I was going to do this was when the Process Button was clicked, it would take the data entered and just automatically populate that text in the email field. Is this the best way or should I look into forms?
Also I have considered adding a feature that requires certain fields to have information and if they do not, you will not be able to proceed to submit the quote. What is the best way to accomplish this?
Lastly, One of the textboxes require the outside salesperson to enter a "quote due by" date. Is it possible to use a calendar feature to do this so when you click Process and the quote is sent to the inside team, it will be added to a calender or something that can be viewed by both parties to help keep track of pending quotes?
I wouldn't email through the app; instead, I would take all their data, send it in a POST request to a PHP server, and then handle it from there. You could either save it in a database your sales reps can access or immediately email the data to them through there. This way you can avoid all the nasty email authentication you'd have to do to keep it in-app, and this way you also don't need to pass the data to an email intent and have them manually send it.
Here's a good SO answer on using HttpPost requests within Android: https://stackoverflow.com/a/4544026/1426565
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. :)