• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

cursorLoader incompatibility v4

Ranch Hand
Posts: 607
Android Python Open BSD VI Editor Slackware
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Error:(21, 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

    Bookmark Topic Watch Topic
  • New Topic