Thursday, June 19, 2014

Week 2: Lesson 4: Introduction to the Java Language

Lesson 4: Introduction to the Java Language
INTRODUCTION
In this lesson you will be learning how to understand and use Java and how it will make your Android app work. The basic concepts of the Java language will set you on your way to becoming a proficient programmer, and you will be able to apply these concepts and skills as you work within the Eclipse IDE to create a mobile app for Android.

LESSON OBJECTIVES
By the end of this lesson, you will be able to:
Section #1: Introduction to Java for Android
1.     Develop a basic understanding of programming languages, including concepts and the terminology used to describe what programmers need to know and are able to do
2.     Identify central components of the Java language in order to use this language to develop your app for Android
3.     Describe how the Java language can be used to develop an app for Android
Section #2: Using Java for Android with Eclipse
1.     Practice using the Java language with the Eclipse IDE to create a mobile application for Android.
Section #3: Video Tutorial: Practice with the Java Language
1.     Practice how to link XML to Java class
2.     Determine how to set up buttons in the Java class

LEARNING SEQUENCE

Required Reading
Read the following:
·      Section #1:


·      Section #2:


Resources
View the following: 
·      Sample Code
·      Video Transcripts
Assignments
Complete the following:
·      The Five Basic Concepts in Programming
·      Starting a Project Using Java with the Eclipse IDE to Create Basic Components of an Android App


INSTRUCTION

Section #1: Introduction to Java for Android

In this section, you will gain insight into what most programmers know and do. While programming concepts may not be easy to initially grasp, you will understand them better in time and with practice. With knowledge of the Java language, you can develop both simple and sophisticated Android applications.

Step 1.
Read through this entire website and use it as a resource to develop your basic knowledge of programming for any language. The 5 central topics introduced in this reading will assist you in better understanding the central components of the Java Language. Read through each section which will cover Variables, Control Structures, Data Structures, Syntax, Tools for programming.  

Step 2.
This reading provides an overview of the Java language. Read through the concepts presented: Constructors, Inheritance, Static and Instance Variables, Interfaces, Imports, ”main” method, Inner Classes, Packages, Build Path, Jar Files, API’s, Comments and JavaDoc. This reading can become a resource to build your knowledge of the Java language and become a guide as you move through this course.

Step 3.
This reading will provide you with an introduction to Java programming but in the context of Android mobile development. This is important in this course as you will be learning the Java language but it will be used to develop mobile applications for the Android platform with development environment specific to this purpose. Starting from the Introduction and Getting Started, read all the way to the section on Wrapping Up. This reading provides descriptions of the necessary downloads, overview of Java and object orientated programming (OOP).

Step 4.
Complete Assignment #1: The Five Basic Concepts in Programming

Section #2: Using Java for Android with Eclipse
In this section you will understand more about how to work with the Eclipse software. Basic components of the Eclipse UI will be explained. This should set you on your way to creating your Android project with ease.

Step 1.
This resource offers a step-by-step guide on how to set up the SDK and Eclipse. With the ADT (Android Developer Tools) plugin, Eclipse provides an environment in which you can build, code, design, and run your Android apps.

Step 2.
Complete Assignment #2: Starting a Project Using Java with the Eclipse IDE to Create Basic Components of an Android App

Section #3: Video Demonstration on Developing an Understanding of Java

This video tutorial will guide you through the process of how to link XML to a Java class. You will also determine how to set up buttons in the Java class. Please pause and review the video, as necessary, to complete tasks. Transcripts are provided.

Step 1.
View & Practice: Lesson 4 [6:52]

SUMMARY
While the Java language and the concepts behind it may take some time for you to understand and use, the five concepts presented in this lesson will set you on your way to becoming more proficient with the language. Now that you know a bit more about basic concepts in programming and with the Java language in specific, you can determine how to best develop your Android app using the Eclipse IDE. In the next lesson you will be introduced to new Java classes as you create a logo for your app.

ASSIGNMENTS
·      The Five Basic Concepts in Programming
·      Starting a Project Using Java with the Eclipse IDE to Create Basic Components of an Android App


Week 2: Lesson 3: Editing XML, and Viewing it in the Graphical Layout

Lesson 3: Editing XML, and Viewing it in the Graphical Layout
INTRODUCTION
In this lesson you will develop good habits as a beginning programmer by testing what each piece of code does, and seeing and experimenting with how it works. Through a trial-and-error approach, you will understand how to change certain parts of the code to see how it comes out in the Graphic Layout of Eclipse. You will also learn how to clean a Java project of errors and debug it as well.
LESSON OBJECTIVES
By the end of this lesson, you will be able to:
Section #1: Establishing Good Programming Habits
1.     Review expert tips, tools and suggestions to develop your programming skills
2.     Describe the benefits of “cleaning” a Java For Android Project
Section #2: Describe the changes that happen when you edit the XML
1.     Identify the components of the XML and how it works with the Java language to define views.
2.     Determine how to manipulate XML to produce desired results.
Section #3: Understanding the Importance of the GUI
1.     Describe the benefits of using a graphic user interface (GUI) in the development process.
Section #4: Video Demonstration of How to Clean Your Project
1.     Learning how to 'Clean' your project
2.     How to change code in the XML
3.     How to view changes in Graphical Layout
LEARNING SEQUENCE

Required Reading
Read the following:
·      Section #1:



·      Section #2:

·      Section #3:
Resources
View the following: 
·      Sample Code
·      Video Transcripts
Assignments
Complete the following:
·      What Do Beginning Programmers Need to Know about Android?
·      What’s in a GUI?


INSTRUCTION

Section #1: Establishing Good Programming Habits

In this section, you will develop an understanding of what it is like to work as an Android developer and programmer.

Step 1.
In this interview with Tony Hillerson, an Android developer at Effective UI, you will read about the skills and tools you’ll need to become an Android developer. Hillerson also discusses a variety of topics related to programming for Android with Java, including understanding how Android's XML-defined views translate onto the screen. Information about the mobile marketplace is also discussed.
Step 2.
This article presents useful information you can use to better understand the power of Eclipse with Android plugin. You will also review information presented on the many editors Eclipse uses and understand how to best configure them. The topic of version control is also touched upon at the end of this tip sheet.
Step 3.
In this short tutorial you will be provided an overview of the process of “cleaning” an Android project in the Eclipse IDE. This will be beneficial as you begin the development process. In the process of Android programming you will need to be able to “clean” your project and also check for errors in development.
Step 4.
Complete Assignment #1: What Do Beginning Programmers Need to Know about Android?

Section #2: Describe the changes that happen when you edit the XML
In this section you will be introduced to XML layouts and the options for using them in the development of a layout for an Android application.

Step 1.
Read: Layouts
In this resource you are introduced to the user interface components of Android through the process of editing the XML code for the layout. On this web page view the area titled Write The XML. In this area you are provided a section of sample code for the layout described. Review this page and read the areas titled Load The XML Resource, Attributes, ID and Layout Parameters. These sections will provide you with an overview of the components of the XML and how it works with the Java language to define the views.
Section #3: Understanding the Importance of the GUI
An important part of most applications is the Graphical User Interface, or GUI. In this section you will explore how to use the Graphical Layout Editor to develop your Android application.

Step 1.
This reading will assist you in describing the benefits of using a graphic user interface (GUI) in the development process. You will review all of the main features of the editor including the canvas, outline, palette and configuration chooser. Viewing video segments provided in links in the reading will allow you to see how these features work.
Step 2.
Complete Assignment #2: What’s in a GUI?

Section #4: Video Demonstration of How to Clean Your Project 

Cleaning your project is when Eclipse scans your app of any false errors, and cleans it. This video demonstration will walk you through the process of how to clean your project. This is an important step that programmers must use throughout the development process to make certain that there are no errors in their code and that their applications run seamlessly. You will also practice how to change code in the XML and then learn how to view changes in Graphical Layout. Please pause and review the video, as necessary, to complete tasks. Transcripts are provided.
Step 1.
View & Practice: Lesson 3 [10:10]

SUMMARY
In this lesson you gained exposure to XML and experimented and tested various changes to your code. You also used Eclipse to clean your project and to identify any potential errors, a necessary step and best practice for all programmers. Through demonstration, trial and error with XML and your code, you explored various graphical layout options with manipulations to the code. In the next lesson you will expand on your knowledge of the Java language as you work more in-depth with the Eclipse IDE.

ASSIGNMENTS
·      What Do Beginning Programmers Need to Know about Android?
·      What’s in a GUI?