You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Lesson04b-Webpages-Maps-and-Sharing/T04b.02-Exercise-OpenMap/app/src/main/java/com/example/android/implicitintents/MainActivity.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ public void onClickOpenWebpageButton(View v) {
50
50
publicvoidonClickOpenAddressButton(Viewv) {
51
51
// TODO (5) Store an address in a String
52
52
53
-
// TODO (6) Use Uri.parse with the appropriate scheme and query to form the Uri for the address
53
+
// TODO (6) Use Uri.Builder with the appropriate scheme and query to form the Uri for the address
54
54
55
55
// TODO (7) Replace the Toast with a call to showMap, passing in the Uri from the previous step
56
56
Toast.makeText(this, "TODO: Open a map when this button is clicked", Toast.LENGTH_SHORT).show();
Copy file name to clipboardExpand all lines: Lesson04b-Webpages-Maps-and-Sharing/T04b.02-Solution-OpenMap/app/src/main/java/com/example/android/implicitintents/MainActivity.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,12 @@ public void onClickOpenAddressButton(View v) {
Copy file name to clipboardExpand all lines: Lesson04b-Webpages-Maps-and-Sharing/T04b.03-Exercise-ShareText/app/src/main/java/com/example/android/implicitintents/MainActivity.java
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,10 @@
18
18
importandroid.content.Intent;
19
19
importandroid.net.Uri;
20
20
importandroid.os.Bundle;
21
-
importandroid.support.v4.app.ShareCompat;
22
21
importandroid.support.v7.app.AppCompatActivity;
23
22
importandroid.view.View;
24
23
importandroid.widget.Toast;
25
24
26
-
importstaticandroid.R.attr.mimeType;
27
-
28
25
publicclassMainActivityextendsAppCompatActivity {
29
26
30
27
@Override
@@ -52,7 +49,13 @@ public void onClickOpenWebpageButton(View v) {
Copy file name to clipboardExpand all lines: Lesson04b-Webpages-Maps-and-Sharing/T04b.03-Solution-ShareText/app/src/main/java/com/example/android/implicitintents/MainActivity.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,13 @@ public void onClickOpenWebpageButton(View v) {
0 commit comments