我无法通过wifi调试.
我遵循了以下步骤.
现在我在下面的Image中得到了结果显示.
我的设备连接后.我移除了我的USB线,然后我的设备列表为空.
我不知道为什么会这样.
我有motorola X玩手机Android 6.0和Windows 10操作系统.
需要帮忙.
在将OkHttpClient对象添加到改造中时出现错误.
错误是: com.google.gson.JsonSyntaxException:java.lang.IllegalStateException:关闭
这是我的代码:
public static OkHttpClient getUnsafeOkHttpClient() {
try {
File mFolder = new File(Environment.getExternalStorageDirectory() + "/certificate");
if (!mFolder.exists())
{
mFolder.mkdir();
}
String fileName = "certificate1a.cer";
File file = new File(mFolder, fileName);
FileInputStream fis = null;
fis = new FileInputStream(file);
CertificateFactory cf = CertificateFactory.getInstance("X.509");
Certificate ca = cf.generateCertificate(fis);
// Create a KeyStore containing our trusted CAs
String keyStoreType = KeyStore.getDefaultType();
KeyStore keyStore = KeyStore.getInstance(keyStoreType);
keyStore.load(null, null);
keyStore.setCertificateEntry("ca", ca);
// Create a TrustManager that trusts the …Run Code Online (Sandbox Code Playgroud) 
Fragment秒:My1stFragment和My2ndFragment. My1stFragment我有一个ListView由数据库填充的内部.此外,当我点击编辑按钮时,我调用第二个Fragment来编辑数据.Fragment我编辑我的工资金额并通过点击提交按钮更新我的数据库并返回My1stFragment.My1stFragment,我ListView也没有更新.android android-listview android-fragments android-viewpager android-sqlite