上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 通过BitmapFactory的decode系列方法可以将其位置的图片加载为bitmap的对象, //todo 阅读全文
posted @ 2016-03-02 21:51 gentspy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 创建SQLite:String sql="CREATE TABLE'student' ("+"_id integer primary key autoincrement, "+"stu_name varchar(16) not null,"+"stu_phone_number varchar(16) 阅读全文
posted @ 2016-03-02 19:38 gentspy 阅读(179) 评论(0) 推荐(0) 编辑
摘要: bindservice Eg:service 和Activity的绑定*定义Service,重写onBind()方法,注:返回值不为null,该返回值类型是IBInder,*在其他组件中,调用bindService()绑定到Service, //todo 阅读全文
posted @ 2016-03-02 16:05 gentspy 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 存储方案:偏好设置、文件存储、XML存储、数据库存储【偏好设置】偏好设置是用户在使用软件的过程中,配置的个性化设置,这些设置往往只需要1个值就可以表现。偏好设置适用于保存少量的数据。通过ContextWrapper的getSharedPreferences()方法,可以获取SharedPrefere 阅读全文
posted @ 2016-03-02 15:41 gentspy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: super关键词1访问父类被隐藏的属性public class Parent(){int money=10000;} public class Child extends Parent(){int money=100;pulbic int getParentMoney(){return super. 阅读全文
posted @ 2016-03-01 22:46 gentspy 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 数组多态,参数多态,返回值多态编译器,运行期是不同的状态, 阅读全文
posted @ 2016-03-01 22:18 gentspy 阅读(115) 评论(0) 推荐(0) 编辑
摘要: android 中的屏幕适配的理解解决屏幕适配的方案:*双面板布局,*少用absolutelyLayout*使用wrap_content,match_parent来控制组件的宽度和高度。 频幕的适配方法1.尽量使用相对布局使用layout_weight方法2.清单文件配置:在AndroidManif 阅读全文
posted @ 2016-03-01 20:49 gentspy 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Java code ? 1 2 3 4 5 6 7 8 /** * @see java.lang.String#valueOf(java.lang.Object) * @see #append(java.lang.String) */ public synchronized StringBuffer 阅读全文
posted @ 2016-03-01 20:00 gentspy 阅读(638) 评论(0) 推荐(0) 编辑
摘要: INTENT:显示intent: Intent intent=new Intent(this,Activity01.class); 隐式intent:在intent-filter注册 intent的作用:*启动Activity startActivity(intent),StartActivityF 阅读全文
posted @ 2016-02-29 23:31 gentspy 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 四大组件之ContentProvide: *ContentProvider关联的数据一般在内部存储中 *ContentProvide的生命周期由系统管理 四大组件之Service start模式: *onCreat()1次 *onStartCommand()多次* onDestroy().调用sta 阅读全文
posted @ 2016-02-29 22:53 gentspy 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页