Sending intents with adb with ACTION_VIEW, setData, and putExtra? 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
The Android developer documentation explains how to specify an intent in the argument to the am command.

In your case you want -a to specify the action, -d to specify the data URI, and --ez to specify a Boolean extra. You can find the action name by looking up Intent.ACTION_VIEW in the documentation. Putting all of that together, you get:-

am start -a android.intent.action.VIEW -d com.glass.videoglass:// --ez startFromWS true