命令行启动程序的方法

启动计算器 # am start -n com.android.calculator2/com.android.calculator2.Calculator

启动系统自带的日历 # am start -n com.android.calendar/com.android.calendar.LaunchActivity

启动闹钟 # am start -n com.android.alarmclock/com.android.alarmclock.AlarmClock

启动照相机 # am start -n com.android.camera/com.android.camera.Camera

启动音乐播放器 # am start -n com.android.music/com.android.music.MusicBrowserActivity

启动视频播放器 # am start -n com.android.music/com.android.music.VideoBrowserActivity

启动音频播放器 # am start -n com.android.music/com.android.music.MediaPlaybackActivity

启动浏览器 # am start -n com.android.browser/com.android.browser.BrowserActivity url

启动浏览器 #am start -a android.intent.action.VIEW -d http://www.google.cn/

拨打电话 am start -a android.intent.action.CALL -d tel:10086

启动 google map 直接定位到北京 :am start -a android.intent.action.VIEW geo:0,0?q=beijing

模拟发广播

am broadcast -a com.android.test –es test_string “this is test string” –ei test_int 100 –ez test_boolean true

com.android.test

蓝色为key,红色为alue,分别为String类型,int类型,boolean类型

启动Service

am startservice -n package/package.EngineService
package是包名 或者Action

更多相关文章

  1. android程序执行adb shell命令
  2. vs xamarin android 监听返回键退出程序
  3. [android]为程序创建快捷方式
  4. 【Android自学笔记】为Android应用程序添加Rate功能
  5. android 判断 网络 类型
  6. 第一章:初入Android大门(程序加载应用)
  7. Android中Data和String数据类型转换
  8. android 加法程序
  9. 【从头学android】第一个程序,点按钮显示Hello World

随机推荐

  1. Android学习心得——序言
  2. Android新语言Kotlin
  3. 微软为Win10开发Android和iOS快速移植工
  4. Android(安卓)Intent:不同应用程序之间通
  5. Android自定义控件以及控件属性的自定义
  6. Android(安卓)那些你所不知道的Bitmap对
  7. Android(安卓)资源和国际化 [复制链接]
  8. androd中使用 https ssl
  9. android 通过操作像素来实现水波效果
  10. Android(安卓)NDK入门实例 计算斐波那契