Android integrates Twitter share, how to share pictures?

android

#1

Android integrates Twitter share, how to share pictures?


#2

Here is how to compose Tweets through Twitter Kit on Fabric: https://docs.fabric.io/android/twitter/compose-tweets.html


#3

.image(String img):the img must be a File, True or False?


#4

Can it be a url string, like Uri.parse(“http://…/a.png”), ok?


#5

Hey @HuaYicheng2016 - it should be a path to our local file. From our documentation:

“The image Uri should be a file Uri (i.e. file://absolute_path scheme) to a local file. For example,”

File myImageFile = new File("/path/to/image");
Uri myImageUri = Uri.fromFile(myImageFile);

#6

Please change “should be” to “must be”, thank you.


#7

Glad you’re all set @HuaYicheng2016 and will share your feedback with the team.