07 2012 档案

摘要:(转自:http://www.iteye.com/topic/1123524)关于ListView异步加载图片有很多方式,也有很多方法可以解决图片错位的现象,看完他们写的代码,多半是基于回调的方式,比如这位:http://www.iteye.com/topic/685986他解决错位的方式很巧妙:ImageView imageViewByTag = (ImageView) listView.findViewWithTag(imageUrl);在构造适配器是传入ListView的引用,由唯一的TAG来找显示的ImageView;还有这位:http://www.iteye.com/topic/11 阅读全文
posted @ 2012-07-31 09:49 imlucky 阅读(17626) 评论(3) 推荐(0)
摘要:NDK编译时指定NDK_MODULE_PATH的方法:ndk-build NDK_MODULE_PATH=`pwd`可以写在一个build.sh文件里面:ndk-build $1 NDK_MODULE_PATH=`pwd`这样,编译就输入:./build.sh 清除就输入:./build.sh clean是不是很方便? 阅读全文
posted @ 2012-07-27 15:41 imlucky 阅读(6845) 评论(0) 推荐(0)
摘要:String path = “music/bg.mp3”; //正确的参数//String path = “assets/music/bg.mp3”; //错误的参数//String path = “file:///android_asset/music/bg.mp3”; //错误的参数//String path = “/music/bg.mp3”; //错误的参数AssetFileDescriptor assetFileDescritor = mContext.getAssets().openFd(path); mediaPlayer.setDataSource(ass... 阅读全文
posted @ 2012-07-27 10:53 imlucky 阅读(7659) 评论(0) 推荐(1)
摘要:c++调用java时得到java签名的方法javap -s -p <classname> 阅读全文
posted @ 2012-07-26 16:37 imlucky 阅读(232) 评论(0) 推荐(0)
摘要:AssetManager am = getAssets(); //AssetManager am = getResources().getAssets(); AssetFileDescriptor afd = am.openFd("nxn.mp3"); FileDescriptor fd = afd.getFileDescriptor(); MediaPlayer mp2 = new MediaPlaye... 阅读全文
posted @ 2012-07-17 16:43 imlucky 阅读(4132) 评论(0) 推荐(0)
摘要:Winehttp://baike.baidu.com/view/126772.htmhttp://www.winehq.org/ 阅读全文
posted @ 2012-07-14 17:57 imlucky 阅读(281) 评论(0) 推荐(0)
摘要:免去反复装系统和驱动的麻烦。1. 使用命令行参考:http://www.blogjava.net/MEYE/archive/2011/08/25/357250.html2. 使用工具UCloner参考:http://forum.ubuntu.org.cn/viewtopic.php?t=176612 阅读全文
posted @ 2012-07-14 16:15 imlucky 阅读(157) 评论(0) 推荐(0)