Я пытаюсь отправить сообщения Direct из своего приложения для Android. Для этого я погуглил и нашел следующее решение по ссылкам. В этом Twitter4j я нашел фрагмент кода. Я пробовал то же самое в своем приложении для Android, но получил проблему:
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.**
Пожалуйста, помогите мне выйти из этой проблемы.