android - How to upload a Video file to Twitter -


there many questions unfortunately not answered , outdated upload video twitvid how upload video twitter in android application? best way upload video on twitter

i'm using twitter4j upload image , working when use same code upload video , message tweeted , there no video

statusupdate statusupdate = new statusupdate(message); statusupdate.setmedia(files[0]); status status = twitter.updatestatus(statusupdate); 

also don't know if twitvid still available because tried download doesn't exist fabric twitter kit, supported upload video ?? because didn't find thing on documentation.

you can user tweetcomposer sharing twitter.

tweetcomposer.builder builder = new tweetcomposer.builder(mcontext)                         .text(status)                         .image(videouri);                  builder.show(); 

careful while sharing uri in 24 n above , uri should

 content://com.sample.myproject.provider/my_images/image430.jpg 

in format.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -