Index: platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java |
diff --git a/platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java b/platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java |
index a7e83ffdb552696c16c5e2eb1d6bfdcf9480718a..f54b7d97466d040f4cb50d7bae2d90a92718f864 100644 |
--- a/platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java |
+++ b/platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java |
@@ -9,6 +9,14 @@ package com.skia; |
import org.libsdl.app.SDLActivity; |
+import android.content.Intent; |
+ |
public class VisualBenchActivity extends SDLActivity { |
- // TODO wire up command line arguments |
+ protected String[] getArguments() { |
+ // intent get intent extras if triggered from the command line |
+ Intent intent = this.getIntent(); |
+ String flags = intent.getStringExtra("cmdLineFlags"); |
+ |
+ return flags.split("\\s+"); |
+ } |
} |