Silakan download
Web Service: getAccount.php <?php include "connect_db.php"; $query = "SELECT username,password FROM tbaccount"; $result = mysql_query($query, $link) or die('Errorquery: '.$query); $rows = array(); while ($r = mysql_fetch_assoc($result)) { $rows[] = $r; } $data = "{Account:".json_encode($rows)."}"; echo $data; ?> Layout Adapter <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android :layout_width= "fill_parent" android :layout_height= "fill_parent" android :orientation= "vertical" > < LinearLayout android :layout_width= "fill_parent" android :layout_height= "fill_parent" android :layout_weight= "1" android :orientation= "horizontal" > < TextView android...
Komentar
Posting Komentar