I get error when displaying the data in listview

0

Below is the code which executes at last when displaying the data into listview! But when i provide code like

myViewHolder.route.setText(" Hello there");

it shows up the listview with the text. But I get error when performing the below code like

05-23 14:21:47.350 4821-4821/? I/System.out: infoss route here105 infoss From here 1 05-23 14:21:47.350 4821-4821/? W/ResourceType: No package identifier when getting value for resource number 0x00000069 05-23 14:21:47.350 4821-4821/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41671c80)

In system.out it prints the value but cannot execute when i bind it into holder! I used this link as an help. Any help would be great! Sorry if I lack something in question! Thank you

System.out.println("infoss route here" +information.getRoute_no() +" infoss From here " +information.getFrom());
      myViewHolder.route.setText(information.getRoute_no());
        //myViewHolder.route.setText(infos.get(position).getRoute_no());
        myViewHolder.bus_from.setText(information.getFrom());
        //myViewHolder.bus_from.setText(infos.get(position).getFrom());
        myViewHolder.bus_to.setText(information.getTo());
        myViewHolder.v_type.setText(information.getV_type());
        myViewHolder.get_on.setText(information.getFrom());
        myViewHolder.get_off.setText(information.getChangeid1());
        myViewHolder.distance.setText(information.getDist3());
android
listview
android-viewholder
asked on Stack Overflow May 23, 2016 by Tripathee Gaurav • edited May 23, 2016 by Tripathee Gaurav

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0