android app cannot connect to twitter

喜你入骨 提交于 2019-12-24 15:53:39

问题


My android application uses jtwitter and doesn't see api.twitter.com host

    Twitter twitter = new Twitter("user", "pass");
    System.out.println(twitter.getStatus("somebody"));
    twitter.setStatus("my stat");

But java desktop application works pretty good. What is the problem can be with android? I added even uses-permission INTERNET


回答1:


Igor read this :: Twitter finally deciding to deprecate the existing Basic Authentication by June 2010

now you must use Twitter OAuth for Android

this is a very good and useful example:: How to use SignPost and Twitter4J with OAuth

Jorgesys



来源:https://stackoverflow.com/questions/3586076/android-app-cannot-connect-to-twitter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!