随笔 - 366  文章 - 0  评论 - 101  阅读 - 30万
06 2015 档案
自定义广播发送、接收
摘要://发送自定义广播public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat... 阅读全文
posted @ 2015-06-21 20:37 寒星12345678999 阅读(299) 评论(0) 推荐(0) 编辑
Intent 显示意图 隐式意图
摘要://显式意图 :必须指定要激活的组件的完整包名和类名 (应用程序之间耦合在一起)// 一般激活自己应用的组件的时候 采用显示意图//隐式意图: 只需要指定要动作和数据就可以 ( 好处应用程序之间没有耦合)//激活别人写的应用 隐式意图, 不需要关心对方的包名和类名public void enter(... 阅读全文
posted @ 2015-06-17 11:05 寒星12345678999 阅读(358) 评论(0) 推荐(0) 编辑
屏幕切换 onStart() onStop() onRestart() onDestroy()
摘要:android:configChanges="orientation|keyboardHidden|screenSize" //xml文件 设置 :取消键盘 忽略屏幕方向和大小变化//被销毁的时候调用的方法@Overrideprotected void onDestroy() {System.out... 阅读全文
posted @ 2015-06-17 10:32 寒星12345678999 阅读(713) 评论(0) 推荐(0) 编辑
ContentProvider ContentResolver ContentObserver 内容:提供、访问、监听
摘要:内容提供public class PersonContentProvider extends ContentProvider{private static final String AUTHORITY = "com.itheima28.sqlitedemo.providers.PersonConte... 阅读全文
posted @ 2015-06-07 12:09 寒星12345678999 阅读(664) 评论(0) 推荐(0) 编辑
Cursor 游标
摘要:private void printCursor(Cursor cursor) {if(cursor != null && cursor.getCount() > 0) {while(cursor.moveToNext()) {int columnCount = cursor.getColumnCo... 阅读全文
posted @ 2015-06-06 15:21 寒星12345678999 阅读(151) 评论(0) 推荐(0) 编辑
InstrumentationTextCase 测试
摘要: 阅读全文
posted @ 2015-06-04 09:30 寒星12345678999 阅读(175) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示