I am trying to send the Direct messages from my Android app. For that I have Googled and found the following solution from the links . In that Twitter4j I have found the code snippet. I have tried the same in my Android app also, but got the issue:
http://twitter4j.org/en/code-examples.html
// The factory instance is re-useable and thread safe.
Twitter sender = new TwitterFactory().getInstance();
DirectMessage message = sender.sendDirectMessage(recipientId, message);
System.out.println("Sent: " message.getText() + " to @" + message.getRecipientScreenName());
Issue :
**10-10 20:04:26.440: E/AndroidRuntime(6935): java.lang.IllegalStateException: Authentication credentials are missing. See http://twitter4j.org/configuration.html for the detail.**
Please help me to come out of this issue.