Responsive Ad Area

Share This Post

test

Populate Cursor data according to current fragment

Question_answer application:
I have a simple layout with text view…i wanted to create fragments using that layout and populate the question using cursor data according to the current fragment position.for eg: if current fragment is 3 then cursor.move(3);
I tried two ways:
1. In FragmentStatePagerAdapter::
in getItem(): the text view gives a nullpointer exception(even after instantiating the fragment class.

2.In the fragment class::
the data is being represented incorrectly.

can anyone give me ideas on any other ways.. or a solution to this..


Populate Cursor data according to current fragment
Populate Cursor data according to current fragment
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar