开发者

publish in twitter from application android

开发者 https://www.devze.com 2023-03-05 17:47 出处:网络
Hi I installed api twitter开发者_如何学编程4j. I want to publish a message on twitter. How can I use twitter4j to publish? If anyone know another api more better can help me.If you already have your

Hi I installed api twitter开发者_如何学编程4j. I want to publish a message on twitter. How can I use twitter4j to publish? If anyone know another api more better can help me.


If you already have your Twitter object set up this is update yoru status:

Status status = twitter.updateStatus(statusStr);

You should do that from a background thread since it is a web activity, so it doesn't freeze the UI. And you should catch and handle the possible exceptions.

0

精彩评论

暂无评论...
验证码 换一张
取 消