小编Moh*_*bah的帖子

从 twitter api android 注销

我正在尝试将我的应用程序集成到 Twitter 并且我做到了

但我的问题是:如何从 twitter 注销?我可以删除我的应用程序的 RequestToken 或 OAuth 吗?

我尝试使用:

  • twitter.setOAuthAccessToken(null);

但不起作用

  • callbackUrl = "api.twitter.com/oauth/authorize?force_login=true";

也不起作用

请帮我

提前致谢

android twitter4j twitter-oauth

4
推荐指数
1
解决办法
1475
查看次数

android中的Ksoap2无法序列化

我在 android 中使用 ksoap2

将数字列表作为字符串发送

但它有错误:

java.lang.runtimeexception 无法序列化

我搜索了此错误的解决方案,但结果没有改变

请帮帮我

public String Send(ArrayList<String> contactlist)
{
    try{
SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);
PropertyInfo pi=new PropertyInfo();
            pi.setType(String.class);
            pi.setName("contactlist");
            pi.setValue(contactlist);
            request.addProperty("contactlist", pi);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        StrictMode.setThreadPolicy(policy); 

        // Creating SOAP envelope           
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        new MarshalBase64().register(envelope); // this line is for serialization

        //You can comment that line if your web service is not .NET one.
        envelope.dotNet = true;

        envelope.setOutputSoapObject(request);
        AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport("http://10.0.2.2:54869/Service1.asmx");
        androidHttpTransport.debug = true;
}
    catch (Exception …
Run Code Online (Sandbox Code Playgroud)

java android ksoap2

0
推荐指数
1
解决办法
6905
查看次数

标签 统计

android ×2

java ×1

ksoap2 ×1

twitter-oauth ×1

twitter4j ×1