Android ADB shell starts Java program

Source: Internet
Author: User

Keywords : Android am activitymanager: Go to shell to reference C: "events and settings" mawenjian> ADB Shell

check the help reference of the command # Am-help
am-help
error: Unknown command:-help
usage: am [Start | instrument]
am start [-A ] [-D ] [-T ]
[-C [-C ]...]
[-E [-E ...]
[-n ] [-D] [ ]
am instrument [-E ] [-P ]
[-W]

Okay. Start the browser reference # Am start-N com. Google. Android. Browser/COM. Google. Android. browser. browseractivity.
Am start-N com. Google. Android. Browser/COM. Google. Android. browser. browseractivity
Starting: intent {comp = {com. Google. Android. Browser/COM. Google. Android. browser. browseractivity }}

OK.
Let's try the following command: Reference # Am start-A Android. Intent. Action. View-D http://mwjian.javaeye.com
Am start-A Android. Intent. Action. View-D http://mwjian.javaeye.com
Starting: intent {Action = Android. Intent. Action. View data = http://mwjian.javaeye.com}

# Am start-A Android. Intent. Action. Call-D Tel: 88888888
Am start-A Android. Intent. Action. Call-D Tel: 88888888
Starting: intent {Action = Android. Intent. Action. Call DATA = Tel: 88888888}

# Am start-A Android. Intent. Action. all_apps
Am start-A Android. Intent. Action. all_apps
Starting: intent {Action = Android. Intent. Action. all_apps}

# Am start-A Android. Intent. Action. View GEO: 0, 0? Q = Shanghai
Am start-A Android. Intent. Action. View GEO: 0, 0? Q = Shanghai
Starting: intent {Action = Android. Intent. Action. View data = GEO: 0, 0? Q = Shanghai}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.