07 2016 档案

摘要:1.参考文献 http://hi.baidu.com/accpzhangbo/blog/item/52aeffc683ee6ec238db4965.html 2.解析 查看java.lang.System的源代码,我们可以找到System.exit(status)这个方法的说明,代码如下: 注释中说 阅读全文
posted @ 2016-07-31 14:07 wikiki 阅读(198) 评论(0) 推荐(0)
摘要:转 http://blog.csdn.net/jiaoyang623/article/details/8773445 今天群里有人讨论怎么给app分配超过100M的内存,有人亮出了largeHeap参数。搜搜资料写写代码,大概有些了解。以我的手机htc one x为例说明一下 先看机器的内存限制,在 阅读全文
posted @ 2016-07-31 10:52 wikiki 阅读(417) 评论(0) 推荐(0)
摘要:同样图片 2000x4000像素 大小3M 在iphone6 plus上1080x1920 微信发图切割像素:719*1280 屏幕宽高: 1080 x 1920 微信发图切割像素:719x1280 4.62 屏幕尺寸: 720 x 1280 微信发图切割像素:540x960 4.6 屏幕尺寸: 9 阅读全文
posted @ 2016-07-25 14:26 wikiki 阅读(449) 评论(0) 推荐(0)
摘要://转 http://blog.csdn.net/lyfi01/article/details/6415726 阅读全文
posted @ 2016-07-24 16:25 wikiki 阅读(327) 评论(0) 推荐(0)
摘要:/** * 正则表达式过滤 标签 * @param str * @return */ public static String cutOutImgPrefix(String str){ String regex = "]*>"; return str.replaceAll(regex, ""); } 阅读全文
posted @ 2016-07-22 17:55 wikiki 阅读(4578) 评论(2) 推荐(1)
摘要:Camera camera = Camera.open(); Parameters parameters = camera.getParameters(); List supportedPreviewSizes = parameters .getSupportedPreviewSizes(); fo... 阅读全文
posted @ 2016-07-22 16:39 wikiki 阅读(697) 评论(0) 推荐(0)
摘要:package com.example.decript; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;... 阅读全文
posted @ 2016-07-22 10:38 wikiki 阅读(348) 评论(0) 推荐(0)
摘要:try { File file = new File(Environment.getExternalStorageDirectory(),"shuju2"); if(!file.exists()){ file.createNewFile(); } FileWriter fw = new FileWriter(file); BufferedWriter out = ... 阅读全文
posted @ 2016-07-21 17:16 wikiki 阅读(2960) 评论(0) 推荐(0)
摘要:在Android中,我们有三种方式来实现视频的播放: 1、使用其自带的播放器。指定Action为ACTION_VIEW,Data为Uri,Type为其MIME类型。 2、使用VideoView来播放。在布局文件中使用VideoView结合MediaController来实现对其控制。 3、使用MediaPlayer类和SurfaceView来实现,这种方式很灵活。 1、调用其自... 阅读全文
posted @ 2016-07-07 16:16 wikiki 阅读(352) 评论(0) 推荐(0)