- 博客(6)
- 收藏
- 关注
原创 基本算法的java实现
private static void insertSort(int[] a){ for(int i=1;i<a.length;i++){ int j= i-1; while(j>=0 && a[j] > a[j+1]){ int temp = a[j+1]; a[j+1] = a[j]; a[j] = temp; j--; } } }
2014-09-28 09:34:55 446
原创 java对象的复制
IsAcUser isAcUser = new IsAcUser(); ByteArrayOutputStream bo=new ByteArrayOutputStream(); ObjectOutputStream oo; try { oo = new ObjectOutputStream(bo); oo.writeObject(acUser); } catch (IOExcep
2014-07-15 13:51:42 477
转载 ListView 添加viewPager为header时,viewPager滑动失去焦点的解决办法
设置ViewPager的onTouch事件,代码如下: [java] view plaincopy viewPager.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, Motion
2014-07-14 10:39:10 697
转载 Adapter报错:The content of the adapter has changed
在Android编程中使用Adapter时,偶尔会出现如下错误: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread,
2014-07-10 12:29:05 547
转载 Android 4.3 Monkey自动化测试工具被killed的原因分析
测试组使用Monkey在Android上想对APK进行自动化测试,但在启动Monkey测试工具时,一直无法正常启动, [plain] view plaincopyprint? shell@android:/ $ monkey -p com.android.calculator2 -v 100 monkey -p com.android.ca
2014-07-09 15:39:41 1238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人