Question

Does anyone tried to use CursorAdapter with old and new api?

Do you have some code examples of such solutions?

Was it helpful?

Solution

Does anyone tried to use ContactAdapter with old and new api?

There is no ContactAdapter class in the Android SDK, so I am uncertain what you are referring to here.

Do you have some code examples of such solutions?

Here is an example that shows using conditional class loading to populate a SimpleCursorAdapter based for either the old or new API depending on the version of Android that you are running.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top