I always have below error

03-04 17:29:01.800: ERROR/AndroidRuntime(448): Caused by:
java.lang.ClassNotFoundException: android.view.fragment in loader
dalvik.system.PathClassLoader@44e83790


On 4 Mar, 16:52, Alessio Grumiro <[email protected]> wrote:
> Ok, but it must be executed on HoneyComb (look at default.properties
> target=android-11).
>
> I'm unable to lunch it on android 1.6.
>
> Is the library for android 1.6?
>
> 2011/3/4 marlan <[email protected]>
>
>
>
>
>
>
>
> > 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

-- 
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

Reply via email to