Copy the code in to your app.

On Mon, Feb 9, 2009 at 10:03 PM, Gerald <myq...@gmail.com> wrote:

>
> I noticed a discussion about the SlidingDrawer here:
>
> http://groups.google.com/group/android-developers/browse_thread/thread/5d735511a2de5137/bb4c622678f39322?hl=en&lnk=gst&q=com.android.internal#bb4c622678f39322
>
> What can I do if the SlidingDrawer is a private API?
>
> Thanks
>
> Gerald
>
> On Feb 10, 11:03 am, Gerald <myq...@gmail.com> wrote:
> > Attach exception message:
> > Unable to start activity ComponentInfo{com.android.mylauncher/
> > com.android.mylauncher.Launcher}: android.view.InflateException:
> > Binary XML file line #40: Error inflating class
> > java.lang.reflect.Constructor
> >
> > The 40 line of my launcher.xml is the start tag of
> > com.android.internal.widget.SlidingDrawer
> >
> > On Feb 10, 10:53 am, Gerald <myq...@gmail.com> wrote:
> >
> > > Attach log from logcat:
> > > ----- pid 403 at 2009-02-10 02:40:11 -----
> > > Cmd line: com.android.mylauncher
> >
> > > DALVIK THREADS:
> > > "main" prio=5 tid=3 NATIVE
> > >   | group="main" sCount=1 dsCount=0 s=0 obj=0x40018dd8
> > >   | sysTid=403 nice=0 sched=0/0 handle=-1096160100
> > >   at android.os.BinderProxy.transact(Native Method)
> > >   at android.app.ActivityManagerProxy.handleApplicationError
> > > (ActivityManagerNative.java:2044)
> > >   at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302)
> > >   at com.android.internal.os.RuntimeInit
> > > $UncaughtHandler.uncaughtException(RuntimeInit.java:75)
> > >   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
> > >   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
> > >   at dalvik.system.NativeStart.main(Native Method)
> >
> > > "Binder Thread #2" prio=5 tid=13 NATIVE
> > >   | group="main" sCount=1 dsCount=0 s=0 obj=0x4346c490
> > >   | sysTid=408 nice=0 sched=0/0 handle=809568
> > >   at dalvik.system.NativeStart.run(Native Method)
> >
> > > "Binder Thread #1" prio=5 tid=11 NATIVE
> > >   | group="main" sCount=1 dsCount=0 s=0 obj=0x4346be60
> > >   | sysTid=407 nice=0 sched=0/0 handle=812328
> > >   at dalvik.system.NativeStart.run(Native Method)
> >
> > > "JDWP" daemon prio=5 tid=9 VMWAIT
> > >   | group="system" sCount=1 dsCount=0 s=0 obj=0x4346b2a0
> > >   | sysTid=406 nice=0 sched=0/0 handle=804536
> > >   at dalvik.system.NativeStart.run(Native Method)
> >
> > > "Signal Catcher" daemon prio=5 tid=7 RUNNABLE
> > >   | group="system" sCount=0 dsCount=0 s=0 obj=0x4346b1e8
> > >   | sysTid=405 nice=0 sched=0/0 handle=806024
> > >   at dalvik.system.NativeStart.run(Native Method)
> >
> > > "HeapWorker" daemon prio=5 tid=5 VMWAIT
> > >   | group="system" sCount=1 dsCount=0 s=0 obj=0x425bf020
> > >   | sysTid=404 nice=0 sched=0/0 handle=823080
> > >   at dalvik.system.NativeStart.run(Native Method)
> >
> > > ----- end 403 -----
> >
> > > This exception is thrown after setContentView(R.layout.launcher) in
> > > onCreate function in Launcher.java
> > > Thanks
> >
> > > Gerald
> >
> > > On Feb 10, 12:29 am, Romain Guy <romain...@google.com> wrote:
> >
> > > > Without showing us the exact exception we won't be able to help you
> much...
> >
> > > > On Mon, Feb 9, 2009 at 4:44 AM, Gerald <myq...@gmail.com> wrote:
> >
> > > > > Hi,
> > > > > I need to customize the launcher application.
> > > > > I built it from the android source, and installed it to the
> emulator
> > > > > successfully(By renaming its package name to solve signing
> conflicts).
> > > > > When I tried to run my build, an exception occurred, and I can't
> find
> > > > > where it actually from because it seems to be from an internal
> thread.
> >
> > > > > After an whole day trying, I found that the exception is thrown by
> the
> > > > > line in Launcher.java possibly:
> > > > > setContentView(R.layout.launcher);
> >
> > > > > Does anyone have any suggestion?
> > > > > Thank you very much.
> >
> > > > > Gerald
> >
> > > > --
> > > > Romain Guy
> > > > Android framework engineer
> > > > romain...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> > > > to provide private support.  All such questions should be posted on
> > > > public forums, where I and others can see and answer them
> >
> >
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to