08 2018 档案
摘要:说明 Unix时间戳 Unix时间戳(Unix timestamp),或称Unix时间(Unix time)、POSIX时间(POSIX time),是一种时间表示方法,定义为从格林威治时间1970年01月01日00时00分00秒起至现在的总秒数。Unix时间戳不仅被使用在Unix系统、类Unix系
阅读全文
摘要:1.查看当前堆栈 Call tree new Exception(“print trace”).printStackTrace(); 2.MethodTracing 性能分析与优( 函数占用CPU时间, 调用次数, 函数调用关系) a) 在程序代码中加入追踪开关 import android.os.
阅读全文
摘要:Main Activity java @Overridepublic boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.more, menu); return super.onCreateOptions
阅读全文
摘要:步骤一:定义回调接口 步骤二:http json 定义 步骤三:调用及分析返回(Main Activity)
阅读全文
摘要:1.纯数组JSON 字符串转换 [ {"name": "zhangsan","age": "10","phone": "11111","email": "11111@11.com"}, {"name": "lisi","age": "20","phone": "22222","email": &qu
阅读全文
摘要:示例数据结构定义: public class Student { public int id; public String nickName; public int age; public ArrayList<String> books; public HashMap<String, String>
阅读全文
摘要:使用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
阅读全文
摘要:class EventReadThread extends Thread { boolean socketCreated = false;DatagramSocket socket;InetAddress serverAddress;byte dataIn[] = new byte[1024]; p
阅读全文
摘要:private void sendNotify() { NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); NotificationCompat.Builder bui
阅读全文
摘要:手机设置 1.设置手机为开发者模式(小米:设置->关于手机->连续点击MIUI版本——开启成功) 2.在更多设置中找到系统安全设置——允许安装未知来源的应用 3.在更多设置中选择开发者选项,在开发者选项中同时勾选USB调试和USB安装的开关 4.将Log功能打开至需要的级别(注意不同手机方法设置方法
阅读全文
摘要:android开发错误问题
阅读全文

浙公网安备 33010602011771号