Cupcake's bug ? Caused by: android.content.res.Resources

by Karima » Thu, 30 Apr 2009 18:12:19 GMT


Sponsored Links
 i,

My application works fine but in adb logcat, I see a bug in your lib.
Is it my fault ?

Thanks, bye.

I/ActivityManager( 568): Start proc com.orange.bagua for activity
com.example/.ExampleActivity: pid=884 uid=10019 gids={}
W/WindowManager( 568): Exception when adding starting window
W/WindowManager( 568): android.view.InflateException: Binary XML file
line #24: Error inflating class java.lang.reflect.Constructor
W/WindowManager( 568): at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
W/WindowManager( 568): at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView
(PhoneLayoutInflater.java:56)
W/WindowManager( 568): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
W/WindowManager( 568): at android.view.LayoutInflater.inflate
(LayoutInflater.java:385)
W/WindowManager( 568): at android.view.LayoutInflater.inflate
(LayoutInflater.java:320)
W/WindowManager( 568): at android.view.LayoutInflater.inflate
(LayoutInflater.java:276)
W/WindowManager( 568): at
com.android.internal.policy.impl.PhoneWindow.generateLayoutPhoneWindow.jav
a:2149)
W/WindowManager( 568): at
com.android.internal.policy.impl.PhoneWindow.installDecor
(PhoneWindow.java:2203)
W/WindowManager( 568): at
com.android.internal.policy.impl.PhoneWindow.getDecorView
(PhoneWindow.java:1442)
W/WindowManager( 568): at
com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow
(PhoneWindowManager.java:648)
W/WindowManager( 568): at
com.android.server.WindowManagerService$H.handleMessage
(WindowManagerService.java:7092)
W/WindowManager( 568): at android.os.Handler.dispatchMessage
(Handler.java:99)
W/WindowManager( 568): at android.os.Looper.loop(Looper.java:
123)
W/WindowManager( 568): at
com.android.server.WindowManagerService$WMThread.run
(WindowManagerService.java:440)
W/WindowManager( 568): Caused by:
java.lang.reflect.InvocationTargetException
W/WindowManager( 568): at android.widget.FrameLayout.<init>
(FrameLayout.java:79)
W/WindowManager( 568): at
java.lang.reflect.Constructor.constructNative(Native Method)
W/WindowManager( 568): at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
W/WindowManager( 568): at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
W/WindowManager( 568): ... 13 more
W/WindowManager( 568): Caused by: android.content.res.Resources
$NotFoundException: Resource is not a Drawable (color or path):
TypedValue{t=0x2/d=0x1010059 a=-1}
W/WindowManager( 568): at
android.content.res.Resources.loadDrawable(Resources.java:1609)
W/WindowManager( 568): at
android.content.res.TypedArray.getDrawable(TypedArray.java:548)
W/WindowManager( 568): at android.widget.FrameLayout.<init>
(FrameLayout.java:91)
W/WindowManager( 568): ... 17 more
D/AndroidRuntime( 877): Shutting down VM
D/dalvikvm( 877): DestroyJavaVM waiting for non-daemon threads to
exit
D/dalvikvm( 877): DestroyJavaVM shutting VM down
D/dalvikvm( 877): HeapWorker thread shutting down
D/dalvikvm( 877): HeapWorker thread has shut down
D/jdwp ( 877): JDWP shutting down net...
D/jdwp ( 877): +++ peer disconnected
I/dalvikvm( 877): Debugger has detached; object registry had 1
entries
D/dalvikvm( 877): VM cleaning up



Other Threads

1. support for ad2p and others

I was wondering if and when the API for these protocols would be
implemented into android and whether or not it is to be released in an
an official update for the G1 anytime soon.  I was disappointed giving
up my SE w950i for the G1 after discovering the lacking in dynamic
bluetooth support, but am hopeful that the OS will be mended to fill
this gap.  As of now i have two devices that remain unutilized due to
this lacking; a bluetooth stereo system in my car and stereo
headphones.  I would very much like the phone to be compatable with
these as it would bolster the functionality and use in the media
aspect of the G1.

--~--~---------~--~----~------------~-------~--~----~

2. Android run on eclipse issue

Hi all,
I use eclipse to develop the android application.
I follow the docs step by step to set up my enviroment and everythin
looks fine.
but when I run it first time it will show error at console window as
below.
 "emulator-5554 disconnected! Cancelling 'com.android.bernie.ImBernie'
launch!"

The emulator 5554 can open but the screen on the phone shows that it's
locked and when I unlocked it to run my application directly, it will
show that my application has stopped unexpectedly.

After I searched this issue at google for days, I felt that it should
not be my problem, casue many people is in the same situation as me.

I don't close the emulator 5554 and press run again, the console shows
that it launch a new emulator 5556.
And then everything is works fine.

Why should I need to run it twice to get the correct result?
Does anyone know how to fix this issue?

--~--~---------~--~----~------------~-------~--~----~

3. How to read alog output in IPCThreadState.cpp

4. emulator trace wanted

5. Build for 32bit

6. Can I use string begin with '@' in XML

7. HelloWorld] Could not find HelloWorld.apk!