under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example).
On 4 Mrz., 16:32, Premier <[email protected]> wrote: > Where did you found example, please? > > I need it. > > Thank you. > > On 4 Mar, 15:04, marlan <[email protected]> wrote: > > > > > > > > > Ok, I found the samples that uses the compatibility packages > > (FragmentDialogOrActivitySupport etc.). > > I changed the base class from FragmentLayout to FragmentLayout extends > > FragmentActivity and now it works. > > > On 4 Mrz., 13:31, marlan <[email protected]> wrote: > > > > Hi, > > > I'm trying to use the new fragment library in an 1.6 app. > > > I have copied the FragmentLayout.java and the fragment_layout.xml from > > > the Apidemos and the android-support-v4.jar in my project. > > > Everything compiled but when I run the app I get an exception: > > > java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment > > > cannot be cast to android.app.Fragment. > > > (The my.package.FragmentLayout$TitlesFragment extends > > > android.support.v4.app.Fragment) > > > How can I use the library? > > > The APIDemos that comes with the compatibility package seems to use > > > only the honeycomp Api. > > > Thanks Mark -- 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

