> I have a UI chunk which is a subclass of > android.support.v4.app.DialogFragment. When running on devices with > SCREENLAYOUT_SIZE_NORMAL or SCREENLAYOUT_SIZE_SMALL our library > launches a new android.support.v4.app.FragmentActivity which displays > theDialogFragmentin its embedded mode. All good so far. > > I also want to be able to display that DialogFragmentin in its dialog > mode when running on API 11+. (This is why we're using fragments.) > Since I'm working from within a library project, I do not have control > over the host activity's base class, so it may likely be extended from > Activity, not from FragmentActivity. > > Is there a way to display my android.support.v4.app.DialogFragmenton > API 11+ inside of a subclass of Activity, not FragmentActivity?
AFAICS the answer is: compatibility library Fragments are not compatible with the Honeycomb fragment API, so you can't. I've fallen back to displaying the fragments via activities with a dialog theme, which looks like it will work OK. -- 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

