2017年5月4日

图片文件和Bitmap之间的转换

摘要: 图片文件转为Bitmap对象String filePath="c:/01.jpg"; Bitmap bitmap=BitmapFactory.decodeFile(filePath); 如果图片过大,可能导致Bitmap对象装不下图片解决办法:String filePath="c:/01.jpg"; 阅读全文

posted @ 2017-05-04 15:40 乐学习 阅读(27379) 评论(0) 推荐(1) 编辑

android 中 系统日期时间的获取

摘要: android 中 系统日期时间的获取 阅读全文

posted @ 2017-05-04 11:03 乐学习 阅读(187) 评论(0) 推荐(0) 编辑

android之Uri的常用几个例子

摘要: 显示网页: 1. Uri uri = Uri.parse("http://www.google.com"); 2. Intent it = new Intent(Intent.ACTION_VIEW,uri); 3. startActivity(it); 显示地图: 1. Uri uri = Uri 阅读全文

posted @ 2017-05-04 10:13 乐学习 阅读(20175) 评论(0) 推荐(0) 编辑

导航