MOBILE ICP 2 - navyagonug/CSEE5590-WEB-AND-MOBILE-PROGRAMMING GitHub Wiki

PROBLEM STATEMENT

1.Understand the starter code given for ordering coffee and make asimple mobile application to order a pizza with the following requirements.

a.The main activity should look as below (make suitable changes for the pizzaordering app!).

b.Add two more options for the toppings.

c.Create the 'ORDER' and 'SUMMARY' buttons besideeach other.

d.When clicked on 'SUMMARY' button, the summary should display in a new activity in a List View

e.When clicked on 'GO TO ORDER' button, the screen should navigate back to order screen

f.When clicked on 'ORDER' button, an option to send an email with the summary of the order should be displayed as follows

APPROACH

I have used the use case of coffee ordering app to develop a pizza ordering mobile application. For this, I have used four java programs. They are,

1. LoginActivity.java

A logic is written in such a way that, the user needs to enter the password and email id. The default ones I have provided are '[email protected]' and 'navya' as password. If they are correct, a redirection to pizza ordering page will be done. Here is the code snippet,

Here is the screenshot of working login page.

In the pizza ordering page, the desired pizza's as well as their quantities can be selected and click on add to cart.

Now, the payment mode needs to be chosen, It can either be debit or credit card. Then click on make a payment.

The linked gmail account redirection will be made and the order details will be sent to that gmail id as shown.