am start to start the application

adb shell am start -n com.b.game/com.b.game.module.gameDetail.GameDetailActivity --ei pid 10 --es id "66"


To briefly explain, --ei indicates that the parameter type is an extra integer, and --es indicates that the parameter type is a string (extra string), and then they are followed by a key-value pair to identify the parameter name and specific value. If you need other types, you can refer to the article mentioned at the beginning or use am -h to view the help.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325649895&siteId=291194637