andriod第三课------Intent、后台服务与线程
来源:互联网 发布:dnf源码吧 编辑:程序博客网 时间:2024/09/21 11:25
快捷方式
ctl + 1 自动更正
ctl+/ 注释
ctl + shift+/ 块注释
ctl + shift+\ 取消块注释
ctl+shift+o 自动导包
Alt +/ 自动补齐
ctl+shift+右键 打开命令行
adb shell 命令行
安装:adb install xxx.apkcd data目录下可以看已经安装的APK包卸载:adb uninstall xxx.apkadb push xxx /sd/目录 将文件上传到adb pull /sd/ xxx ./ 将文件下载到当前目录
隐式Itent
用来实现页面跳转,Itent.setaction()可选择跳转到哪。
Service
后台进程,startService()启动服务stopService()停止服务
服务中跑线程
服务中的线程若果不退出,就算服务结束,也会重新启动服务,所以,服务的ondestroy()
方法中一定要做线程杀死操作。
注意:服务(也可以叫后台)的唤醒用startSevice(Intent).这个Intent是预先定义好的显式Intent,只要是显式Intent就得在manifast.xml中注册。
activity的四种启动模式
0 0
- andriod第三课------Intent、后台服务与线程
- Android-线程与后台服务【占坑中】
- Andriod第六课----进程与线程
- 前台线程与后台线程
- 辅助线程与后台线程
- 前台线程与后台线程
- andriod学习bundle Intent
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- 第三课:Andriod手机ROM定制…
- Oracle 负载均衡解决方案
- notepad++ 正则表达式(记录)
- PC端纯css二级栏目导航条
- ubuntu16.04中将python3设置为默认及两个版本的切换命令
- js获取某年某月某天是第几周
- andriod第三课------Intent、后台服务与线程
- IIS 7 下载 .cer 证书文件 下载问题
- Spring Controller 获取请求参数的几种方法
- iOS-Core-Animation-Advanced-Techniques-(二)寄宿图
- 匹配联行号
- MFC CString 和int相互转化
- ORACLE学习命令
- Simulator installs an app drag-and-drop onto the Simulator window
- MP4剪切合成时间计算