Udacity Android Learning Note: Lesson 4 Part A
/titer1/archimedes of dry Goods shop chores
Source: Https://code.csdn.net/titer1
Contact: 13,073,161,968
Disclaimer: This document is licensed under the following protocols: Free reprint-Non-commercial-non-derivative-retention Attribution | Creative Commons by-nc-nd 3.0, reproduced please specify the author and source.
Tips:https://code.csdn.net/titer1/pat_aha/blob/master/markdown/android/
SQL lesson
4a-15课開始,之前主要是基础 activity life cycle
SQL table looks like this.
Overview Arch Repeat
4a18
Intro to weather Contract
See also Solution weather table colums Solutions
INNER JOIN 2 Tables
Rest time
Don asked the new scholar to delve into the key points of foreign key and joins (in Lesson 4a-23)
Our weather contact
Practice.. Code Time Weathercontract.java
Don specifically shows the Key/foreign key
Define constants in contract
Locationentry
Chapter II Sqllite Open Helper and Sunshine database repeat next station the map starts to move.
Weatherdbhelper Code
-Database name
-related statements for the database
-Create TABLE
-Specify foreign keys
Database test
The result was not passed.
The general reason is that only weather.db was created and not yet created Locatin.db
Next to modify
The following is to make up for the remaining DB,
Create Sunshine Location DB Solution
SQLite Open Helper on Upgrade
Database upgrade.
-Must manually change the database version?
-Database changes
-Row Changes
-Column Changes
-Overall structural changes
Chapter III ReadWrite from a database3.1 overview
3.2 Plan
3.3 Difficulty Query
3.4 Code Practice Repetition
第三章节的代码 集中于此
The key is to run the previous checklist and write the testlocationtable.
The same principle is used to test Weathertable.ok, let go
End
It took me 2 hours to thank Don for his company.
-Data storage Diagram overview
-Activity lifecycle, changes when rotating the screen (pause. Restart?)
-Database Test
Udacity Android Learning Note: Lesson 4 Part A