public static String androidCmdName(){
  String os=System.getProperty("os.name");
  String cmd="android";
  if (os.startsWith("Windows")) {
    cmd+=".bat";
  }
  return cmd;
}

public static String androidCmdName ( ) { String os = System . getProperty ( "os.name" ) ; String cmd = "android" ; if ( os . startsWith ( "Windows" ) ) { cmd += ".bat" ; } return cmd ; }
returns the appropriate name for the ' android ' command , which is ' android . exe ' for windows and ' android ' for all other platforms .
