Update SharingSupport demo for support lib API change
Change-Id: I351271b9847d7444470ed8c74dd18ff580718aca
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user