Skip to content

Commit 8d3ba8f

Browse files
author
Jeremy Silver
committed
Update Lesson 8
1 parent 894c239 commit 8d3ba8f

File tree

26 files changed

+43
-37
lines changed

26 files changed

+43
-37
lines changed

Lesson08-Quiz-Example/T08.01-Exercise-AddTheContentProviderPermission/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.01-Exercise-AddTheContentProviderPermission/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

Lesson08-Quiz-Example/T08.01-Solution-AddTheContentProviderPermission/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.01-Solution-AddTheContentProviderPermission/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

Lesson08-Quiz-Example/T08.02-Exercise-AddAsyncTaskToRetrieveCursor/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.02-Exercise-AddAsyncTaskToRetrieveCursor/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

Lesson08-Quiz-Example/T08.02-Solution-AddAsyncTaskToRetrieveCursor/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.02-Solution-AddAsyncTaskToRetrieveCursor/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

Lesson08-Quiz-Example/T08.03-Exercise-FinishQuizExample/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.03-Exercise-FinishQuizExample/app/src/main/java/com/udacity/example/quizexample/MainActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ public void showDefinition() {
104104

105105
}
106106

107+
@Override
108+
protected void onDestroy() {
109+
super.onDestroy();
110+
// TODO (5) Remember to close your cursor!
111+
}
112+
107113
// Use an async task to do the data fetch off of the main thread.
108114
public class WordFetchTask extends AsyncTask<Void, Void, Cursor> {
109115

Lesson08-Quiz-Example/T08.03-Exercise-FinishQuizExample/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

Lesson08-Quiz-Example/T08.03-Solution-FinishQuizExample/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
applicationId "com.udacity.example.quizexample"
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:25.0.1'
25+
compile 'com.android.support:appcompat-v7:25.1.0'
2626
compile project(":droidtermsprovider")
2727
}

Lesson08-Quiz-Example/T08.03-Solution-FinishQuizExample/app/src/main/java/com/udacity/example/quizexample/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void showDefinition() {
128128
@Override
129129
protected void onDestroy() {
130130
super.onDestroy();
131-
// Don't forget to close your cursor!
131+
// COMPLETED (5) Remember to close your cursor!
132132
mData.close();
133133
}
134134

Lesson08-Quiz-Example/T08.03-Solution-FinishQuizExample/droidtermsprovider/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion '25.0.1'
5+
buildToolsVersion '25.0.2'
66

77
defaultConfig {
88
minSdkVersion 14
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:25.0.1'
24+
compile 'com.android.support:appcompat-v7:25.1.0'
2525
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Dec 07 15:40:46 PST 2016
1+
#Fri Jan 06 14:00:37 PST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 commit comments

Comments
 (0)