Update SharingSupport demo for support lib API change

Change-Id: I351271b9847d7444470ed8c74dd18ff580718aca
This commit is contained in:
Adam Powell
2012-02-13 16:41:31 -08:00
parent 61b8a98d74
commit 770fc91f54

View File

@@ -65,7 +65,7 @@ public class SharingSupport extends Activity {
ShareCompat.IntentBuilder.from(this)
.setType("text/plain")
.setText("I'm sharing!")
.startChooserForResult();
.startChooser();
}
public void onShareFileClick(View v) {
@@ -79,7 +79,7 @@ public class SharingSupport extends Activity {
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 @@ public class SharingSupport extends Activity {
.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) {