Android sharing feature

Can I share my video or my photo with my application on the Internet in android? If possible, how to do it? I made an application and now I want to share some of my features on the Internet, so how can I do this? thank

+3
source share
2 answers

Depending on what exactly you mean, it is possible that this functionality is already built-in. Using intent ACTION_SENDallows the system to coordinate actions for the exchange of arbitrary types of data. There are applications that can send images and videos to Twitter, YouTube, Picasa, MMS, Bluetooth, etc.

- () , :

Intent msg = new Intent(Intent.ACTION_SEND);
msg.setType("image/jpeg");
msg.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/foo.jpg"));
startActivity(Intent.createChooser(msg, "Share image"));

, , -, , , . - , , , -, Android. , , .

API Android org.apache.http -.

+2

@rbads, , , , Socialize - www.GetSocialize.com. "" , (entity = ).

0

Source: https://habr.com/ru/post/1735178/


All Articles