android
weixin_44652129
怀梦想,致远方。
展开
-
Activity活动生命周期
@ Activity生命活动周期 onCreate //创建 onStart //开始 onResume // 显示,获得焦点 onPause //可见,失去焦点 onStop // 不可见 onDestroy //销毁 创建和销毁在一次生命活动中只调用一次。 Handler Sercice的启动方式 startSercice bindSercice Se...原创 2019-05-23 11:01:53 · 219 阅读 · 0 评论 -
bundle传值相关技术
intent.putExtra("hello","您好")//键值对 接受页面拿到intent Intent intent = getintent(); String hello = getStringExtra(“hello”); Textview tv = new Textview; tv.setText(hello); Bundle Bundle主要用于传递数据,它保存的数据,是以key-...原创 2019-05-23 11:03:10 · 241 阅读 · 0 评论