QuestionQuestion

The purpose of this assignment is to:
• Practice the use of Android Development Environment
• Practice the use of Android Manifest file
• Practice the use of Intents in Android apps
• Practice the use of resources in Android apps

Exercise 1
In this exercise you will build a very simple Android application.

Skip the steps that require the use of command line tools or real devices. This app allows the user to type a message in the text field and click Send button. The message will appear on the second activity.

Exercise 2
Write an Android application with two activities. The main activity will use several String variables to hold the following information:
- Your full name
- Your program name
- Your semester
- Course name
Declare the String resources in strings.xml file. Add a button to the main activity. Display the above information in a second activity whenever the user clicks on Send button.

The purpose of this exercise is to:
Develop Android Apps with complex UI

Exercise 3
Using Android UI elements, write an Android application that allows users to order pizza using their Android phones.

On the main screen, use a Menu control to implement a list from which the user can select the desirable pizza shop.

On the pizza shop screen, use the appropriate UI components to allow the user to choose the pizza type (radio buttons), pizza size (radio buttons), and toppings (check boxes).

On the customer info screen, use EditText controls and other UI elements to allow the user to enter customer’ information, such as name, the closest identifiable location, credit card number, etc. Provide validation for these entries using the proper methods/constructor for each control.

Use TextView objects to create the label components for your UI. Allow the user to
use "Back" key to go back to the previous screen.

Allow the customer to rate the "service" using a RatingBar.

Display the order information on the check-out screen when the user clicks on a button titled “Order”.

On the check-out screen, use a progress indicator to keep animating until the shop "confirms" that they received the order. You can specify the time.

Use styles and themes to create a nice look and feel of PizzaOrder app. Use drawable objects to display the logo for each pizza shop, pizza types, etc.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

package com.exercise.july.exercise1;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

import java.util.List;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);

    }

    public void onSendMessage(View view){
       EditText messageView = (EditText)findViewById(R.id.message);
       String messageText = messageView.getText().toString();
       Intent intent = new Intent(this, Main2Activity.class);
       intent.putExtra(Main2Activity.EXTRA_MESSAGE, messageText);
       startActivity(intent);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
       // Inflate the menu; this adds items to the action bar if it is present.
       getMenuInflater().inflate(R.menu.menu_main, menu);
       return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
       // Handle action bar item clicks here. The action bar will
       // automatically handle clicks on the Home/Up button, so long
       // as you specify a parent activity in AndroidManifest.xml.
       int id = item.getItemId();

       //noinspection SimplifiableIfStatement
       if (id == R.id.action_settings) {
            return true;
       }

       return super.onOptionsItemSelected(item);
    }
}...
$90.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats