2014年5月6日
摘要:
public class ViewHolder { // I added a generic return type to reduce the casting noise in client // code @SuppressWarnings("unchecked") public sta...
阅读全文
posted @ 2014-05-06 16:13
冲锋的路上的兵
阅读(183)
推荐(0)
2014年3月24日
摘要:
http://www.londatiga.net/it/programming/android/how-to-solve-error-conversion-to-dalvik-format-failed-with-error-1-in-android-on-export/
阅读全文
posted @ 2014-03-24 15:04
冲锋的路上的兵
阅读(218)
推荐(0)
2013年11月26日
摘要:
http://blog.csdn.net/hr1986sd/article/details/8997392
阅读全文
posted @ 2013-11-26 16:46
冲锋的路上的兵
阅读(128)
推荐(0)
2013年11月21日
摘要:
用Ant打包的好处就在于可以打多个渠道 常用的就是修改友盟的渠道号,而不需要每改一次输入一次keystore密码的繁琐过程。android 不知道在什么版本之后tools目录下就没有在apkbuilder.bat这个文件了,如果从别人那边 copy 过来也无法使用,提示“apkbuilder 不稳定...
阅读全文
posted @ 2013-11-21 15:41
冲锋的路上的兵
阅读(2493)
推荐(0)
2013年10月14日
摘要:
Android Lint 有个关于在代码中硬编码“sdcard”路径的警告,内容为:不要硬编码(hardcode) “/sdcard/”; 使用 Environment.getExternalStorageDirectory().getPath() 替代sdcard路径详情参考: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal以前的Android(4.1之前的版本)中,SDcard跟路径通过“/sdcard”或者“/mnt/sdcard”来表示,而在Jelly Bean系统中修改为了“
阅读全文
posted @ 2013-10-14 14:31
冲锋的路上的兵
阅读(380)
推荐(0)
2013年10月12日
摘要:
网络数据方面:一.afinal二.UIL三.android-async-http四.Gson五.Android-query界面方面:一.PullToRefreshView二.ActionBarSherlock
阅读全文
posted @ 2013-10-12 11:43
冲锋的路上的兵
阅读(270)
推荐(1)
2013年10月10日
摘要:
大部分内容来源于网络 在此总结下。方法一:public void setListViewHeightBasedOnChildren(ListView listView) { ListAdapter listAdapter = listView.getAdapter(); if (listAdapter == null) { // pre-condition return; } int totalHeight = 0; for (i...
阅读全文
posted @ 2013-10-10 09:29
冲锋的路上的兵
阅读(322)
推荐(0)
2013年9月17日
摘要:
Bitmap too large to be uploaded into a texture (1160x8390, max=4096x4096)所以图片大小不能超过 4096x4096的长宽另外还可以使用以下方法http://blog.chenming.info/blog/2012/09/18/android-hardware-accel/某个activity关闭硬件加速就可以了
阅读全文
posted @ 2013-09-17 15:29
冲锋的路上的兵
阅读(1172)
推荐(0)
2013年9月10日
摘要:
弄了三天的微信分享api 终于是可以了!!官网的说的没错,但是步骤有点乱,搞得我在调用中不可用。1.申请应用 获得了AppId 和自动生成的key(这个代码不会使用到)2.安装微信上的签名包(Gensignature.apk)3.打开这个apk 填写你的项目上 配置文件里package的包名,获得一串md5码。4.把md5码和包名填写到微信平台上(一定要填写的一模一样),提交审核。5.测试--代码就用官网demo就可以了(记得改成自己的AppId 和项目包名要和AppId上的填写的包名一致!!)。6.测试一段时间发现不可用了(无法跳转到微信)!!耐心等待!!必须等到应用通过审核后才可一直使用.
阅读全文
posted @ 2013-09-10 10:10
冲锋的路上的兵
阅读(1058)
推荐(0)
2013年8月13日
摘要:
设置捕获线程出错Thread sendLocationTread = new Thread(sendUserLocationThread);sendLocationTread.setUncaughtExceptionHandler(exceptionHadler);sendLocationTread.start(); /** * 百度地图获取不到位置 重启线程 最多重启5次 */ private UncaughtExceptionHandler exceptionHadler = new UncaughtExceptionHandler() { private int restartTi...
阅读全文
posted @ 2013-08-13 16:19
冲锋的路上的兵
阅读(400)
推荐(0)