android_learning:headfirst_android_development_notes:chapter_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
android_learning:headfirst_android_development_notes:chapter_2 [2016/01/06 19:45] – mithat | android_learning:headfirst_android_development_notes:chapter_2 [2016/01/07 04:45] (current) – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <WRAP center round important 60%> | ||
- | Under development. | ||
- | </ | ||
- | |||
====== Chapter 2 notes ====== | ====== Chapter 2 notes ====== | ||
===== About XML ===== | ===== About XML ===== | ||
- | In the previous chapter, we pretty much punted our way through the XML parts of a basic Android Project. We’ll use Android’s XML configuration files to a greater extent in this and subsequent chapters. You don’t need to be an XML expert to write the XML parts of an Android project; but you do need basic XML knowledge. | + | In the previous chapter, we pretty much punted our way through the XML parts of a basic Android Project. We’ll use Android’s XML configuration files to a greater extent in this and subsequent chapters. You don’t need to be an XML expert to write the XML parts of an Android project, but you do need basic XML knowledge. |
If you are brand new to XML and want a crash course in it, here are some resources for you to look into: | If you are brand new to XML and want a crash course in it, here are some resources for you to look into: | ||
- | * W3School’s [[http:// | + | * W3School’s [[http:// |
* A reasonable tutorial (video) by Mark Lassof: | * A reasonable tutorial (video) by Mark Lassof: | ||
{{youtube> | {{youtube> | ||
+ | \\ | ||
- | It might help you to know that XML was originally developed for use with Web technologies. It has since been adopted for use in many different situations. It’s | + | It might help you to know that XML was originally developed for use with Web technologies |
===== p. 42 ===== | ===== p. 42 ===== | ||
Line 107: | Line 104: | ||
</ | </ | ||
- | ===== Codecheck 1 ===== | + | ===== p. 56: Codecheck 1 ===== |
The app through p. 56. | The app through p. 56. | ||
Line 128: | Line 125: | ||
</ | </ | ||
+ | ===== p. 59 ===== | ||
+ | <code java> | ||
+ | Why do you have to cast the reference returned by '' | ||
+ | |||
+ | ===== pp. 60-62 ===== | ||
+ | <code java> | ||
+ | Why do you need to convert the value returned by '' | ||
+ | |||
+ | ===== p. 65: Codecheck 2 ===== | ||
+ | The app through p. 65. | ||
+ | {{youtube> | ||
+ | \\ | ||
+ | |||
+ | ===== p. 66: Quicktip ===== | ||
+ | Creating a new class in Android Studio | ||
+ | {{youtube> | ||
+ | \\ | ||
+ | |||
+ | ===== p. 66: Code block ===== | ||
+ | Code from p. 66 is reproduced here to make it easy for you to copy/paste it into your project: | ||
+ | <code java> | ||
+ | package com.hfad.beeradviser; | ||
+ | import java.util.ArrayList; | ||
+ | import java.util.List; | ||
+ | |||
+ | public class BeerExpert { | ||
+ | List< | ||
+ | List< | ||
+ | if (color.equals(" | ||
+ | brands.add(" | ||
+ | brands.add(" | ||
+ | } else { | ||
+ | brands.add(" | ||
+ | brands.add(" | ||
+ | } | ||
+ | return brands; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== p. 69 ===== | ||
+ | The [[http:// | ||
+ | |||
+ | ===== p. 71: Finished ===== | ||
+ | {{youtube> | ||
+ | \\ | ||
android_learning/headfirst_android_development_notes/chapter_2.1452109520.txt.gz · Last modified: 2016/01/06 19:45 by mithat