Skip to content Skip to sidebar Skip to footer

Twitter Exception4 04:the Uri Requested Is Invalid

I want to send direct message to user's followers using my android application.I have tried following code String access_token = mSharedPreferences.getString(

Solution 1:

I have used following code in my application for sending direct messages to the followers. May be this can helpful to you.

StringBuilder builder = new StringBuilder();
builder.append("@").append(twitterFriendObj.screenName).append(" ");
Status status = twitter.updateStatus(builder+"Hi this is test message");

Here we need to send follower screen name to send direct message.

Post a Comment for "Twitter Exception4 04:the Uri Requested Is Invalid"