09 2012 档案

摘要:1、提升apk的权限:在AndroidManifest.xml中添加 <uses-sdk android:minSdkVersion="7" android:sharedUserId="android.uid.system"/>2、通过eclipse的Android tools 导出无签名的apk文件(old.apk):Export Unsighted Application Package...图例:解压old.apk,查看内容,无META-INF文件,说明未签名:图例:3、将Android源码中的build/target/product/ 阅读全文
posted @ 2012-09-24 02:25 bvin 阅读(1449) 评论(0) 推荐(0)
摘要:输出斐波纳契数列的前N项public class Test { public static void main(String[] args){ new Test().printFinonacci(10); } void printFinonacci(int count){ for(int i=0;i<count;i++){ System.out.println(finonacci(i)); } } int finonacci(in... 阅读全文
posted @ 2012-09-20 17:09 bvin 阅读(160) 评论(0) 推荐(0)
摘要:其实在android的开发中体现了不少java的知识。1.for循环的使用情景在填充ListView上都是与适配器绑定的,我们看一下适配器的继承结构图。详情参考Devin Zhang的Android之Adapter用法总结这边文章。用的比较多自然就属SimpleAdapter咯,使用简洁,可自定义界面。看下这个适配器是如何填充的。SimpleAdapter getAdapter(int[] res){//填充SimpleAdapter List<Map<String,Object>> list = new ArrayList<Map<String,Objec 阅读全文
posted @ 2012-09-18 16:54 bvin 阅读(2454) 评论(8) 推荐(0)