gpt4 book ai didi

android - Galaxy Note 上 Facebook 请求对话框的持续网络错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:26:40 26 4
gpt4 key购买 nike

Facebook 的这个新 SDK (3.0) 快速且非常时尚,但在我的 Samsung Note 和 Duos 上,该应用程序不断出现网络连接错误。它仅在某些设备中发生,而在其他设备中运行良好。但是在我的应用程序上,我现在不断收到应用程序的网络连接错误。

我跳转到其他应用程序以查看我的 WiFi 或运营商是否有问题,但其他任何地方都没有问题。

Facebook 中的问题似乎不断发生,100 次中至少有一次无法进行对话。

几乎每次我这样做时,都会出现网络问题。我重新启动了手机,但问题又回到了我身上。

有人遇到过这种情况吗?想法?

这是我正在使用的代码

Bundle params = new Bundle();
params.putString("to", friendId);
params.putString("title", titleStr);
params.putString("message", message);
params.putString("notification_text", notificationText);
params.putString("data", dataStr);
params.putString("frictionless", "1");

String method = "apprequests";

dialog = new WebDialog.Builder(this, session, method, parameters)
.setOnCompleteListener(this)
.build();
Window dialog_window = dialog.getWindow();
dialog_window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
dialog.show();

错误信息:reportError errorCode(-1) desc(出现网络错误。)

error getMessage 出现网络错误

最佳答案

确保您已在 list 中添加了 android.permission.INTERNET 权限:

<uses-permission android:name="android.permission.INTERNET" />

可能某些设备正在将 Facebook 请求与 Facebook 应用程序相关联。这对我来说似乎很奇怪,这因设备而异;可能和安卓版本有关?

如果您通过 Intent 调用 Facebook,另一种选择可能是在新任务中启动它。

关于android - Galaxy Note 上 Facebook 请求对话框的持续网络错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20519359/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com