/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

package com.skia;

import org.libsdl.app.SDLActivity;

import android.content.Intent;

public class VisualBenchActivity extends SDLActivity {
  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+");
  }
}

@@ -326,202 +326,176 @@
     
-// intent get intent extras if triggered from the command line%0A    Intent intent = this.getIntent();%0A    String flags = intent.getStringExtra(%22cmdLineFlags%22);%0A    %0A    return flags.split(%22%5C%5Cs+%22)
+String flags = this.getIntent().getStringExtra(%22cmdLineFlags%22);%0A    if (flags != null && !flags.isEmpty()) %7B%0A%09return flags.split(%22%5C%5Cs+%22);%0A    %7D%0A    return new String%5B0%5D
 ;%0A  

Make the Android SDL app start without cmdline arguments