摘要: OpenCv4Android:http://opencv.org/platforms/android.htmlopencv官方中文文档:http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/core/mat%20-%20the%20b... 阅读全文
posted @ 2014-03-25 14:00 微信公众号--共鸣圈 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: public static Bitmap drawText2Bitmap(String text, int imgResourceId, Context mContext) { try { Resources resources = mContext.getResources(); float scale = resources.getDisplayMetrics().density; Bitmap bitmap = BitmapFactory.decodeResource(resources, imgResour... 阅读全文
posted @ 2014-03-21 15:44 微信公众号--共鸣圈 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: 1, 用juniversalchardet:http://code.google.com/p/juniversalchardet/官方示例:import org.mozilla.universalchardet.UniversalDetector;public class TestDetector{ public static void main(String[] args) { byte[] buf = new byte[4096]; java.io.FileInputStream fis = new java.io.FileInputStream("test.txt") 阅读全文
posted @ 2014-03-14 09:42 微信公众号--共鸣圈 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 记下 阅读全文
posted @ 2014-03-12 06:51 微信公众号--共鸣圈 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 此文属于转载!最近用到handle在线程中改变UI,会跟给出“This Handler class should be static or leaks might occur”的警告,网上看了很多解决办法,但都不够详细,这里我重新写一下这个问题的解决办法。1.问题原因:在ADT 20 Changes我们可以找到这样一个变化:“New Lint Checks: Look for handler leaks: This check makes sure that a handler inner class does not hold an implicit reference to its out 阅读全文
posted @ 2014-03-06 22:33 微信公众号--共鸣圈 阅读(1988) 评论(0) 推荐(0) 编辑
摘要: 自动帮助创建android资源xml文件的网站http://android-holo-colors.com/stack overflow上一个seekbar的例子:http://stackoverflow.com/questions/16163215/android-styling-seek-bar 阅读全文
posted @ 2014-03-05 11:37 微信公众号--共鸣圈 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 几个个软件:1, Jaudioatgger:链接2, mp3agic链接3,Java mp3 id3 tag library (推荐用上面两个)其它:android-midi-lib 阅读全文
posted @ 2014-02-20 11:11 微信公众号--共鸣圈 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 首先确定文件的原始字符编码: $ file -bi test.txt 然后用 iconv 转换字符编码 $ iconv -f from-encoding -t to-encoding file > new-file 如果上面的步骤更改不成功,可以使用 vim 来更改文件的字符编码 先打开文件,然后设 阅读全文
posted @ 2014-02-19 00:05 微信公众号--共鸣圈 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 命令行方法:1、 创建Manifest.txt文件,内容:Main-Class: com.mkyong.awt.AwtExample2、打包所有的class,包括Manifest.txt文件:$ jar -cvfm run.jar Manifest.txt com/3、run.jar即可在windows下双击鼠标执行(前提是要安装jre)。在linux用命令行执行: $ java -jar run.jarIDE方法:用eclipse1、右键点击工程,选择 export... 菜单: 2、选择 java 下面的 Runnable JAR file: 3、在launch co... 阅读全文
posted @ 2014-02-18 23:41 微信公众号--共鸣圈 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 后来加上的,因为太强大了,android上百个可立即使用的开源库介绍:https://github.com/Trinea/android-open-projectAndroid上的FTP服务器 SwiFTPAndroid多媒体框架 OpenCoreAndroid自动化测试框架 Cafe (h... 阅读全文
posted @ 2014-02-17 23:17 微信公众号--共鸣圈 阅读(209) 评论(0) 推荐(0) 编辑