[JAVA/Android] Array constants can only be used in initializers
[Problem] String[] command = new String[6]; if(.....) { command = {"adb", "-s", serial, type, inputfile, outputfile}; } >> Array constants can only be used in initializers [Solution] String[] command; if(.....) { command = new String[]{"adb", "-s", serial, type, inputfile, outputfile}; }
2015. 2. 25. 11:04