I am using compatibility package for implementing CursorLoader in API
level < 11 As per the doc, I have imported the support packages and
implemented the LoaderManager.LoaderCallbacks, but next I have to
call:

getSupportLoaderManager()

and for that one has to extend FragmentActivity, and then call from
Activity Context, but I have already extended ListActivity, and want
to make a static call to get LoaderManager, like this:

    FragmentActivity.getSupportLoaderManager()

Apparently, this is a way to get LoaderManager < 11, that's what the
doc says:

    To manage your fragments and loaders, you must use the methods
FragmentActivity.getSupportFragmentManager() and
FragmentActivity.getSupportLoaderManager() (instead of the
getFragmentManager() and getLoaderManager() methods).

But it is giving this compile time error:

Cannot make a static call to a non-static method

http://code.google.com/p/android-eksempler/source/browse/trunk/Android30Elementer/src/android/support/v4/app/FragmentActivity.java?r=50

Code for FragmentActivity, getSupportLoaderManager() is not static
here, that explains the error, but why is the Doc showing a static
call...i am confused now...

Please help!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to