Download Development on Android

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
App Development on Android
Contents
First Milestone
Second Milestone
Third Milestone
Last Milestone
http://www.pace.edu/seidenberg/mobileapp-development-bowl-2015challenge/technical-resources-support
First Milestone (03/06/2015)
Prepare Android
oJava Runtime Environment (JRE)
oJava Development Kit (JDK)
oIntegrated Development Environment (IDE)
oAndroid Software Development Kit (SDK)
More Details are in “Tutorial”
First Milestone (03/06/2015)
Create a New Android App
oUse Android SDK 5.0
Create a New Android Virtual Device
oUse Android SDK 5.0
More Details are in “Tutorial”
First Milestone (03/06/2015)
Design
oMain Purpose
• Game, Weather, Book, Health Care,
• Tool, Education, News,
• Travel, Finance, Social,
• Music, Video, Photo, and Life.
Second Milestone (03/13/2015)
Build the Main Architecture
oLayout
• Define the visual structure for
a user interface
Second Milestone (03/13/2015)
oLayout
Horizontal Linear
Vertical Linear
Relative
Second Milestone (03/13/2015)
Collect Resources
oResources
• icon
• picture
• music
Third Milestone (03/20/2015)
Implement functions
A. Statement
oIn JAVA file
• Objects
• Variables
• Methods
oOnClickListener
• Interface definition for a callback to be invoked when a view is clicked
• private class MyOnClickListener implements OnClickListener{}
Third Milestone (03/20/2015)
Design functions
oButton
oTextView
VIEW!
Third Milestone (03/20/2015)
Implement functions
B. Definition: Connect object to view
oIn JAVA file
• Object = (Class) findViewById(R.id.viewId);
• r_imgBtn = (ImageButton) findViewById(R.id.btnRock);
• imgView = (TextView) findViewById(R.id.textResult);
oSet a ClickListener to a button
• Button.setOnClickListener(myOnClickListener);
View
Object
Third Milestone (03/20/2015)
Implement functions
B. Definition: Connect object to view
Third Milestone (03/20/2015)
Implement functions
C. Implement Main Algorithm
oIn class MyOnClickListener
oonClick() method
oWith View as the argument.
public void onClick(View v){}
Third Milestone (03/20/2015)
Implement functions
C. Implement Main Algorithm
1. After click any button, computer randomly select a
choice;
2. Get the which button is clicked before;
3. Judge the result.
Last Milestone (03/27/2015)
Improve UI
oColor
oPicture
oMusic
oFont
oLayout
Last Milestone (03/27/2015)
Color
oIn res/values/colors.xml, add or edit colors:
<resources>
<color name="background">#99FFCC</color>
</resources>
http://developer.android.com/design/style/color.html
Last Milestone (03/27/2015)
Test on AVD and real devices
Related documents