zoukankan      html  css  js  c++  java
  • android 通过命令行启动Apk

     

    通过adb shell 进入android 系统或者直接在命令前添加adb shell 

    几个启动指定程序activity的例子
    Music 和 Video(音乐和视频)的启动方法为:
    # 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
      
    Camera(照相机)的启动方法为:
    # am start -n com.android.camera/com.android.camera.Camera
      
    Browser(浏览器)的启动方法为:
    # am start -n com.android.browser/com.android.browser.BrowserActivity
      
    启动浏览器 :
    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

    参考链接:http://blog.sina.com.cn/s/blog_677fbc190101l813.html

  • 相关阅读:
    qiankun 报错:Target container with #container not existed while xxx mounting!
    promise加载队列实现
    promise 封装定时器
    关于promise
    节流防抖
    箭头函数特点
    this
    手写apply
    手写call
    手写bind函数
  • 原文地址:https://www.cnblogs.com/Ph-one/p/10856182.html
Copyright © 2011-2022 走看看