-3

my php code for fetching data from database.. can anybody tell me how can i load data into my android pull to refresh listview only new data

 $sql = "SELECT * FROM hotelbook";
 $res = mysql_query($sql);

 $arr = array();

 while($row = mysql_fetch_assoc($res)){
       $arr[] = $row;
 }


 die(json_encode($arr));

1 Answers1

0

For that you have to use Recyclerview.

Next to that is Example.

As the above Example link will describes you all the things step by step.

Keyur Lakhani
  • 4,321
  • 1
  • 24
  • 35
  • i can't understand video it's in different language and i have use custom pull to refresh listview and it show same data again and again while i refresh listview – user3616028 Sep 07 '15 at 18:25