摘要: 2. 在layout 文件中 添加一个 Spinner 控件。 2. 在代码中使用 ArrayAdapter 来适配其中的内容。 例如 阅读全文
posted @ 2017-07-24 23:28 halo-漾 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Notification noti = new Notification.Builder(this) .setContentTitle(methodName + " " + strings[strings.length - 1]) //设置Notification标题, .setAutoCancel(true) ... 阅读全文
posted @ 2017-07-24 21:28 halo-漾 阅读(117) 评论(0) 推荐(0) 编辑
摘要: LRU Cache 一个list 存放最近使用的应用的清单。 Application 生命周期 onCreate() 开启应用第一个组件之前调用。 onLowMemory() android 系统请求这个应用释放内存是调用。 onTrimMemory() onTerminate() 仅在测试时有效。 阅读全文
posted @ 2017-07-24 21:20 halo-漾 阅读(183) 评论(0) 推荐(0) 编辑
摘要: InputStream: 字节流,以字节的形式来进行I/O操作。 InputStreamReader: 字节流和字符流得中间桥梁,指定字符集,把字节转化为字符。 BufferedReader: 读取字符数据放在一个缓冲区,readLine()方法以行的形式来读取文本。 BufferedReader( 阅读全文
posted @ 2017-07-24 15:30 halo-漾 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Explicit Intent 明确的意图,明确指定开启某个Activity。 Intent intent = New Intent (this , 指定的Activity); 共享Intent 把Intetn的动作类型设为 :Intent.ACTION_SEND 即:Intent.setActio 阅读全文
posted @ 2017-07-24 15:09 halo-漾 阅读(177) 评论(0) 推荐(0) 编辑