Update SharingSupport demo for support lib API change
Change-Id: I351271b9847d7444470ed8c74dd18ff580718aca
diff --git a/samples/Support4Demos/src/com/example/android/supportv4/app/SharingSupport.java b/samples/Support4Demos/src/com/example/android/supportv4/app/SharingSupport.java
index 68eb0f2..ec099a8 100644
--- a/samples/Support4Demos/src/com/example/android/supportv4/app/SharingSupport.java
+++ b/samples/Support4Demos/src/com/example/android/supportv4/app/SharingSupport.java
@@ -65,7 +65,7 @@
ShareCompat.IntentBuilder.from(this)
.setType("text/plain")
.setText("I'm sharing!")
- .startChooserForResult();
+ .startChooser();
}
public void onShareFileClick(View v) {
@@ -79,7 +79,7 @@
ShareCompat.IntentBuilder.from(this)
.setType("text/plain")
.setStream(Uri.parse(SharingSupportProvider.CONTENT_URI + "/foo.txt"))
- .startChooserForResult();
+ .startChooser();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
@@ -103,7 +103,7 @@
.setType("text/plain")
.addStream(Uri.parse(SharingSupportProvider.CONTENT_URI + "/foo.txt"))
.addStream(Uri.parse(SharingSupportProvider.CONTENT_URI + "/bar.txt"))
- .startChooserForResult();
+ .startChooser();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {