Android中am命令用法
此贴转自 http://hi.baidu.com/xiaohuozi51/blog/item/9f3f92bff28dea0219d81f18.html 谢谢兄弟的分享
位于frameworks/base/cmds/pm
am命令作用:管理Activity usage: am [start|broadcast|instrument|profile] am start -D INTENT am broadcast INTENT am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>] [-w] <COMPONENT> am profile <PROCESS> [start <PROF_FILE>|stop] INTENT is described with: [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] ...] [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] [-n <COMPONENT>] [-f <FLAGS>] [<URI>] The start command starts activity. Use -D option to make 'DebugOption' true. The broadcast command sends broadcast. The instrument command starts instrumentation. Use -r option to make 'rawMode' true. Use -e option to add the pair of ARG_NAME and ARG_VALUE into Bundle. Use -p option to specify profileFile. Use -w option to make 'wait' true in order to new an instance of InstrumentationWatcher. Use COMPONENT to specify the name of the instrumentation component. The profile command turn on/off profiling in a particular process specified by PROCESS.Use start option to turn on and stop to turn off.Use PROF_FILE to specify the file path of profile. Use -a to set action specified by ACTION to be performed. Use -d to create a Uri(data) which parses the given encoded URI string DATA_URI. Use -t to specify the type specified by MIME_TYPE. Use -c to add a new category specified by CATEGORY to the intent. Use -e or --es to add extended data to the intent.EXTRA_KEY specifies the name of the extra data and EXTRA_STRING_VALUE specifies the string data value. Use --ez to add extended data to the intent. EXTRA_KEY specifies the name of the extra data and EXTRA_BOOLEAN_VALUE specifies the serializable data value. Use -e or --ei to add extended data to the intent. EXTRA_KEY specifies the name of the extra data and EXTRA_INT_VALUE specifies the serializable data value. Use -n to explicitly set the component specified by COMPONENT to handle the intent. Use -f to set special flags controlling how this intent is handled.FLAGS specifies the desired flags. Use URI to create an intent from a URI.
Android中am命令用法相关推荐
- Android中am命令用法详解
Android中am命令用法 位于frameworks/base/cmds/pm am命令作用:管理Activity usage: am [start|broadcast|instrument|pro ...
- Android中Parcelable接口用法
-- 通过writeToParcel将你的对象映射成Parcel对象,再通过createFromParcel将Parcel对象映射成你的对象.也可以将Parcel看成是一个流,通过writeToPa ...
- android 类型.this,Android中this的用法
关于Android中this的用法解释 问题由来 由于很多同学在学习Android时候没有对Java有很深的了解,很多人都会对代码中各种各样的this产生疑惑. 以<第一行代码Android&g ...
- MySQL中show命令用法大全
MySQL中show命令用法大全 官方文档:https://dev.mysql.com/doc/refman/5.6/en/show.html https://dev.mysql.com/doc/re ...
- linux中comm命令用法
linux系统中comm命令用法详解 linux系统下的comm命令是一个非常实用的文件对比命令. comm命令功能: 选择或拒绝两个已排序的文件的公共的行. comm命令语法:comm [-12 ...
- Android中gradlew命令的基本使用
title: Android中gradlew命令的基本使用 date: 2018-07-10 16:18:01 tags: Android Gradle是一个基于Apache Ant和Apache M ...
- linux bin fuser,Linux中fuser命令用法详解
描述: fuser可以显示出当前哪个程序在使用磁盘上的某个文件.挂载点.甚至网络端口,并给出程序进程的详细信息. fuser显示使用指定文件或者文件系统的进程ID. 默认情况下每个文件名后面跟一个字母 ...
- Android中ps命令各字段的含义
Android中ps命令各字段的含义 通过ps命令查看进程的状态,看到如下输出: USER PID PPID VSIZE RSS WCHAN PC S NAME u0_a91 3140 356 222 ...
- linux中comm的用法,linux中comm命令用法
linux系统中comm命令用法详解 linux系统下的comm命令是一个非常实用的文件对比命令. comm命令功能: 选择或拒绝两个已排序的文件的公共的行. comm命令语法:comm [-12 ...
最新文章
- php传递数据给javascript
- Bowtie下载安装
- 异步/同步、阻塞/非阻塞的理解
- JAVA 泛型与反射
- SAP Spartacus cxPageTemplateStyle Directive的作用
- ubuntu文本模式获得权限修改profile
- GPFS文件系统笔记
- 20210119:力扣第42周双周赛(下)
- 极限压缩----压缩至原视频的五分之一
- 编码(decode与encode)
- 2022-07-12
- 伪加密文件的破解方法
- 电力系统稳态matlab,基于MATLAB的电力系统稳态仿真分析
- 线性代数之行列式(1) ——行列式的定义以及二阶行列式
- 南阳oj 找球号(一)
- 关于pycharm中代码为灰色以及如何调整代码检查级别的问题
- Spring Boot:项目前端vue环境搭建
- 一个毕业三年的程序猿对于提升自我的一些建议
- POJ3349-Snowflake Snow Snowflakes
- TrustZone技术简介