/** * Function properly gets and converts the robots name * * @return - String representing the robots trimmed name */ public String getName() { int[] ba; StringBuilder build; String name = null; if (getCommands != null) { // Get the proper bytes and convert them to characters ba = getCommands.getName(); build = new StringBuilder(ba.length); for (int i = 0; i < ba.length; i++) build.append((char) ba[i]); name = build.toString().trim(); } if (D) Log.d(TAG, "Scribbler Name Read: " + name); return name; }