08 2018 档案

摘要:说明 Unix时间戳 Unix时间戳(Unix timestamp),或称Unix时间(Unix time)、POSIX时间(POSIX time),是一种时间表示方法,定义为从格林威治时间1970年01月01日00时00分00秒起至现在的总秒数。Unix时间戳不仅被使用在Unix系统、类Unix系 阅读全文
posted @ 2018-08-30 09:44 Reboost 阅读(894) 评论(0) 推荐(0)
摘要:1.查看当前堆栈 Call tree new Exception(“print trace”).printStackTrace(); 2.MethodTracing 性能分析与优( 函数占用CPU时间, 调用次数, 函数调用关系) a) 在程序代码中加入追踪开关 import android.os. 阅读全文
posted @ 2018-08-27 10:00 Reboost 阅读(212) 评论(0) 推荐(0)
摘要:Main Activity java @Overridepublic boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.more, menu); return super.onCreateOptions 阅读全文
posted @ 2018-08-26 08:58 Reboost 阅读(300) 评论(0) 推荐(0)
摘要:步骤一:定义回调接口 步骤二:http json 定义 步骤三:调用及分析返回(Main Activity) 阅读全文
posted @ 2018-08-25 08:44 Reboost 阅读(555) 评论(0) 推荐(0)
摘要:1.纯数组JSON 字符串转换 [ {"name": "zhangsan","age": "10","phone": "11111","email": "11111@11.com"}, {"name": "lisi","age": "20","phone": "22222","email": &qu 阅读全文
posted @ 2018-08-23 09:01 Reboost 阅读(53638) 评论(1) 推荐(3)
摘要:示例数据结构定义: public class Student { public int id; public String nickName; public int age; public ArrayList<String> books; public HashMap<String, String> 阅读全文
posted @ 2018-08-23 08:04 Reboost 阅读(8220) 评论(0) 推荐(0)
摘要:使用Gson库 Step1: download Gson jar file goto https://github.com/google/gson Gson Download downloads at Maven Central step2: To use Gson in Android 1) co 阅读全文
posted @ 2018-08-21 14:19 Reboost 阅读(456) 评论(0) 推荐(0)
摘要:class EventReadThread extends Thread { boolean socketCreated = false;DatagramSocket socket;InetAddress serverAddress;byte dataIn[] = new byte[1024]; p 阅读全文
posted @ 2018-08-21 12:51 Reboost 阅读(320) 评论(0) 推荐(0)
摘要:private void sendNotify() { NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); NotificationCompat.Builder bui 阅读全文
posted @ 2018-08-20 15:55 Reboost 阅读(880) 评论(0) 推荐(0)
摘要:手机设置 1.设置手机为开发者模式(小米:设置->关于手机->连续点击MIUI版本——开启成功) 2.在更多设置中找到系统安全设置——允许安装未知来源的应用 3.在更多设置中选择开发者选项,在开发者选项中同时勾选USB调试和USB安装的开关 4.将Log功能打开至需要的级别(注意不同手机方法设置方法 阅读全文
posted @ 2018-08-19 21:13 Reboost 阅读(1623) 评论(0) 推荐(0)
摘要:android开发错误问题 阅读全文
posted @ 2018-08-19 09:48 Reboost 阅读(826) 评论(0) 推荐(0)
摘要:android开发 阅读全文
posted @ 2018-08-17 11:14 Reboost 阅读(158) 评论(0) 推荐(0)