上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: W/System.err: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnec 阅读全文
posted @ 2020-03-14 16:52 阿布不学习 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 在Java中操作时间的时候,需要计算某段时间开始到结束的区间日期,常用的时间工具 Date date = new Date();//获取当前时间 Calendar calendar = Calendar.getInstance(); //创建Calendar 的实例 calendar.add(Cal 阅读全文
posted @ 2020-03-01 15:54 阿布不学习 阅读(13046) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/akuma_/article/details/83992871 Not a primitive array: class org.json.JSONArray 报错语句:JSONArray okJsonArray = new JSONArray(j 阅读全文
posted @ 2020-02-29 11:37 阿布不学习 阅读(659) 评论(0) 推荐(0) 编辑
摘要: public class newThread extends Thread { private String msg; public void run(){ //第一步:实例化URL对象 String address="https://api.heclouds.com/devices/5847584 阅读全文
posted @ 2020-02-17 10:17 阿布不学习 阅读(777) 评论(0) 推荐(0) 编辑
摘要: package com.example.webview; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompat 阅读全文
posted @ 2020-02-16 20:10 阿布不学习 阅读(1387) 评论(0) 推荐(0) 编辑
摘要: 1、首先在“Project”结构下将需要的包复制进入libs文件夹中 2、在导入的jar包处右键 选择“Add As Library” 3、选择你要导入到的那个module,如果当前只是一个项目,下拉框中除了app也没有其他的内容,那么直接点击ok确认。 4、然后就完成了jar包的添加 阅读全文
posted @ 2020-02-16 09:54 阿布不学习 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: 在报该编译错误的module的build.gradle中加入如下配置项,排除掉中间生成的META-INF/xxx文件 packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META- 阅读全文
posted @ 2020-02-16 09:41 阿布不学习 阅读(4612) 评论(0) 推荐(0) 编辑
摘要: 两个方法:1.直接将login方法设置为静态方法2.想办法获取BaseActivity的实例,再调用login方法 代码1: public class BaseActivity extends Activity { private static BaseActivity instance; @Ove 阅读全文
posted @ 2020-02-10 17:39 阿布不学习 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/mattdong0106/article/details/10139389 EditText中的getText()方法的返回值为CharSequence,如果我们想要获得string类型数据的话,需要在后边加上.toString 另外,Strin 阅读全文
posted @ 2020-02-10 17:32 阿布不学习 阅读(921) 评论(0) 推荐(0) 编辑
摘要: 报错如图: 解决方法: fragment中没有getSystemService这个方法,如果你要用的话,应该把Context传过去 阅读全文
posted @ 2020-02-07 16:56 阿布不学习 阅读(763) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页