ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 10 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 03 May 2017 My Price 9.00

Lab Exercise 1. Hello World and Calculator App

this is android jave programming. lab 1 description file is attached.

Tasks

In lab1, You have successfully complete the interface of a simple calculator doing only additions. In this assignment, You are required to complete the implementation of MyCal project which does the addition operation on integers.

Details: The simplest possible calculator. Must have:

  • A display area where the action takes place.
  • Numeric Buttons, and "+”
  • Addition
  • Adding two more basic operational buttons: "backspace" and "clear"
  • Must support "running" calculations, as usual: 2+34+12, showing the intermediate result every time you hit the next add operator.

 

 

MSU CSC 567/667, Spring 2017
Lab Exercise 1. Hello World and Calculator App
Due Date: Feb. 3, 2017 (Friday) Introduction
The goal of this lab is to learn the fundamentals of developing Android applications, including project
creation and coding, and running an app on a physical or virtual Android device. More specifically, you
should gain the knowledge of how to use basic development tools to support the application
development process, as well as the key components of an Android application itself. Objectives Be familiar with the Android Development Environment.
Create a basic "Hello World" Android Application containing a simple Graphical User Interface
(GUI).
Understand the various parts and features of an Android Project, and how they relate to each
other.
Become familiar with the Android Emulator.
Create a new project called Calculator, design its interface. Activities
1. Become familiar with the development environment and create First app “Hello World”.
Follows the linker to complete it:
http://developer.android.com/training/basics/firstapp/creating-project.html
2. Take a Tour of the Application Your Android project is now a basic "Hello World" app that contains some default files. Take a
moment to review the most important of these:
app/src/main/res/layout/activity_my.xml This is the XML layout file for the activity you added when you created the project with
Android Studio. Following the New Project workflow, Android Studio presents this file
with both a text view and a preview of the screen UI. The file includes some default
settings and a TextView element that displays the message, "Hello world!"
app/src/main/java/com.mycompany.myfirstapp/MyActivity.java A tab for this file appears in Android Studio when the New Project workflow finishes.
When you select the file you see the class definition for the activity you created. When
you build and run the app, the Activity class starts the activity and loads the layout file
that says "Hello World!" app/src/res/AndroidManifest.xml The manifest file describes the fundamental characteristics of the app and defines each of its components. You'll revisit this file as you follow these lessons and add more
components to your app. app/build.gradle Android Studio uses Gradle to compile and build your app. There is a build.gradle
file for each module of your project, as well as a build.gradle file for the entire
project. Usually, you're only interested in the build.gradle file for the module, in this
case the app or application module. This is where your app's build dependencies are set,
including the defaultConfig settings:
is the platform version against which you will compile
your app. By default, this is set to the latest version of Android available in your
SDK. (It should be Android 4.1 or greater; if you don't have such a version
available, you must install one using the SDK Manager.) You can still build your
app to support older versions, but setting this to the latest version allows you to
enable new features and optimize your app for a great user experience on the
latest devices. compiledSdkVersion applicationId minSdkVersion targetSdkVersion is the fully qualified package name for your application that you
specified during the New Project workflow.
is the Minimum SDK version you specified during the New
Project workflow. This is the earliest version of the Android SDK that your app
supports.
indicates the highest version of Android with which you
have tested your application. As new versions of Android become available, you
should test your app on the new version and update this value to match the latest
API level and thereby take advantage of new platform features. For more
information, read Supporting Different Platform Versions. See Building Your Project with Gradle for more information about Gradle.
Note also the /res subdirectories that contain the resources for your application:
drawable-hdpi/ Directory for drawable objects (such as bitmaps) that are designed for high-density
(hdpi) screens. Other drawable directories contain assets designed for other screen
densities. Here you'll find the ic_launcher.png that appears when you run the default app. layout/ Directory for files that define your app's user interface like activity_my.xml, discussed
above, which describes a basic layout for the MyActivity class.
values/ Directory for other XML files that contain a collection of resources, such as string and
color definitions. The strings.xml file defines the "Hello world!" string that displays
when you run the default app. 3. Change the first app. Display “Snow Day” instead of “Hello World” on the screen. Please define
the displayed string as a resource located in folder \values\strings.xml instead of directly type
the text message hard coded. Right now, “Hello world” is hard coded as shown in Figure 1. You
need to change the layout.xml to Figure 2. Then define strings.xml as shown in Figure 3. So in
the future, you can change the sting very easily, it is good for localization of apps. Figure 1 Figure 2. Figure 3.
4. Run your app On the Emulator: http://developer.android.com/training/basics/firstapp/runningapp.html
5. Make sure you see the “Snow Day” message on the Emulator.
You have successfully run your first app. Then begin to create a new project called as MyCal
which implements a simple calculator doing only additions.
6. Design Interface of MyCal App shown as below: 7. When you run it, it might look as the following. If you have time, please refer the following two
links about handling events of Button by using OnCLickListener.
https://www.simplifiedcoding.net/android-onclicklistener-handling-button-in-android-studio/
http://developer.android.com/guide/topics/ui/controls/button.html

Answers

(11)
Status NEW Posted 03 May 2017 04:05 AM My Price 9.00

-----------

Attachments

file 1493785581-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)