Код: Выделить всё
package guestCheckBox.com;
import java.net.URL;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
public class GuestCheckBox extends Activity {
private ListView lView;
ArrayList guest= new ArrayList ();
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
lView = (ListView) findViewById(R.id.ListView01);
try{
URL url = new URL(
"http://tanjungrhu.jigsy.com/files/documents/Check.xml");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource(url.openStream()));
doc.getDocumentElement().normalize();
NodeList words = doc.getElementsByTagName("Guest");
for(int i=0;i
Подробнее здесь: [url]https://stackoverflow.com/questions/5557169/android-listview-with-checkboxes-how-to-capture-checked-items[/url]