安卓应用无法连接推特 [英] android app cannot connect to twitter
本文介绍了安卓应用无法连接推特的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 android 应用程序使用 jtwitter 并且看不到 api.twitter.com 主机
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");
但是 Java 桌面应用程序运行良好.android 可能会出现什么问题?我甚至添加了使用权限 INTERNET
But java desktop application works pretty good. What is the problem can be with android? I added even uses-permission INTERNET
推荐答案
Igor 阅读了这个 :: Twitter 终于决定在 2010 年 6 月之前弃用现有的基本身份验证
Igor read this :: Twitter finally deciding to deprecate the existing Basic Authentication by June 2010
现在您必须使用 Android 版 Twitter OAuth
这是一个非常好的和有用的例子:: 如何通过 OAuth 使用 SignPost 和 Twitter4J一个>
this is a very good and useful example:: How to use SignPost and Twitter4J with OAuth
Jorgesys
这篇关于安卓应用无法连接推特的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文