so far I can get the available android devices and print them in the console in eclipse:
    String cmd = adbPath+" "+"devices";
    Process p;
    p=Runtime.getRuntime().exec(cmd);
    p.waitFor();
    String line;
    BufferedReader err = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    while ((line = err.readLine()) != null){
        System.out.println(line);
    }
    err.close();
    BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    while((line=input.readLine())!=null){
        System.out.println(line);
        textArea.append("\n"+line);
    }
    input.close();
}
what I want is to display only the devices in jList or combobox ( if there is a better way please let me know) I created a JTextArea and using this line textArea.append("\n"+line); I can display
List of devices attached
0015c600 device
but I only need the device name ..
do you think that there is a way of taking only the device name and put it in a JList or combobox or any thing that will let the user to select the device?
