
Android
达尔文的猹
这个作者很懒,什么都没留下…
展开
-
Android杂记
1.线程的几种写法1.1继承Thread类class MyThread extends Thread{ @Override public void run() { //Other code }}new MyThread.start(); //Start the thread1.2使用Runnable接口class MyThr...原创 2018-12-05 22:04:34 · 228 阅读 · 0 评论 -
Android OkHttp的封装使用
1.先看原始的请求过程以下是请求过程的使用示例。private void useOkHttpSendRequest(){ OkHttpClient client = new OkHttpClient(); RequestBody body = new FormBody.Builder() .add("InfoOne", mInfoOneEditText.getText()...原创 2019-02-07 17:25:47 · 1001 阅读 · 0 评论 -
Android使用log4j实现SD卡的日志记录
准备工作依赖包下载,此处下载两个。Log4J library:http://mirrors.cnnic.cn/apache/logging/log4j/1.2.17/log4j-1.2.17.zipAndroid Logging Log4J:http://code.google.com/p/android-logging-log4j/downloads/list下载之后添加jar包到项...原创 2019-05-27 15:37:02 · 831 阅读 · 0 评论