java.lang.IllegalStateException: No cursor that can return names

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.IllegalStateException: No cursor that can return names
at net.xpece.android.support.preference.SortCursor.getColumnNames(SortCursor.java:253)
at android.database.AbstractCursor.getColumnIndex(AbstractCursor.java:283)
at android.support.v4.widget.CursorAdapter.init$f13d381(CursorAdapter.java:174)
at android.support.v4.widget.CursorAdapter.(CursorAdapter.java)
at android.support.v4.widget.ResourceCursorAdapter.(ResourceCursorAdapter.java)
at net.xpece.android.support.preference.XpRingtonePreferenceDialogFragment.onPrepareDialogBuilder(XpRingtonePreferenceDialogFragment.java:195)
at android.support.v7.preference.PreferenceDialogFragmentCompat.onCreateDialog(PreferenceDialogFragmentCompat.java:151)
at android.support.v4.app.DialogFragment.getLayoutInflater(DialogFragment.java:308)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at dalvik.system.NativeStart.main(NativeStart.java)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.