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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -