• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

cursorLoader incompatibility v4

Ranch Hand
Posts: 491
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
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

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!