Sample Header Ad - 728x90

Sending intents using ADB with additional action, data, and extra

9 votes
1 answer
40533 views
How do I convert the following Java code to an ADB command?
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("com.glass.videoglass://"));
intent.putExtra("startFromWS", true);
startActivity(intent);
The only thing I've seen so far is
adb shell am start -n com.package.name/com.package.name.ActivityName
Asked by Timothy Clemans (213 rep)
Apr 23, 2014, 09:41 PM
Last activity: Jun 23, 2021, 04:48 AM