Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cursorLoader incompatibility v4

 
Giovanni Montano
Ranch Hand
Posts: 249
4
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,


EDIT: I apologize, the code does not scroll and take all the page for a reason i do not know
EDIT 2 is working. First of all i uncommented the cursor lines under populateview(), then in the main class instead of getSupportFragmentManager, i used getFragmenttManager
then cherry on the cake i changed
initLoader(0, null, this) to intLoader(0,null, (LoaderCallbacks<Cursor>) this


as per Subject,
I am not able to run the loaders in this class, I have big issues with v4 support libraries, but on the other side if i do not use them the main class that extends v7 Actionbaractivity does not start
giving me the error
Error21, 21) error: no suitable method found for add(int,FragmentAsList)
method FragmentTransaction.add(int,Fragment,String) is not applicable
(actual and formal argument lists differ in length)
method FragmentTransaction.add(int,Fragment) is not applicable
(actual argument FragmentAsList cannot be converted to Fragment by method invocation conversion)
method FragmentTransaction.add(Fragment,String) is not applicable
(actual argument int cannot be converted to Fragment by method invocation conversion)

the project has min sdk11


and this is the main class

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic