When I\'m trying to use android \'am\' command to start an activity ,it\'s wrong under 4.2 platform(I tried , it\'s ok under 2.3 version).The code is like this
As @juanmf mentioned in a comment, adding the --user 0 option to the command resolved the issue for me. The resulting command would look like this:
--user 0
am start --user 0 -a android.intent.action.VIEW -n com.android.browser/com.android.browser.BrowserActivity