Skip to content Skip to sidebar Skip to footer

Trying To Use Dialogfragments Via V4 Compatability Causes Noclassdeffounderrors

Greetings and salutations, Short Version: I am trying to make use of DialogFragment in my Android Application which has a minSkdVersion of 8 (Android 2.2). In order to make use of

Solution 1:

Since the FragmentActivity is the class that can't be found, I think I know what the problem is. Are you sure your compatibility library is getting included with your apk? You can use dex2jar to check this. It seems that you need to move your libraries to the libs folder for them to get included in newer revisions of the android tools.

Solution 2:

look at the examples of the support library . they extend from "FragmentActivity" in order to support those features.

they also write that you must extend it in order to use the support library: http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html

FragmentActivity:

"Base class for activities that want to use the support-based Fragment and Loader APIs.

When using this class as opposed to new platform's built-in fragment and loader support, you must use the getSupportFragmentManager() and getSupportLoaderManager() methods respectively to access those features."

Post a Comment for "Trying To Use Dialogfragments Via V4 Compatability Causes Noclassdeffounderrors"