I am writing an android sample app and trying to create sample of listview using sample code from here. And it can't resolve LoaderManager. Any idea what could be wrong?
I am using eclipse toolkit with latest android sdk.
The function LoaderManager
you need to use in this example is only available from the API 17 :
http://developer.android.com/reference/android/app/LoaderManager.html
I guess you are using an API inferior to 17 so your project cannot find it.
In case you really need to use this function on older API versions, you can still have a try using the "support" version available in the support library:
http://developer.android.com/reference/android/support/v4/app/package-summary.html
Using this package you can import this LoaderManager
class using:
import android.support.v4.app.LoaderManager;
Instead of:
import android.app.LoaderManager;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With