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. How to i adjust the width of an imageview in the java code

I have a battery and on top of the battery i have a patch 9 png image that
is the "battery filler" my question is how do i change the with of this
image view.

-- 

2. what does this code segment do in weatherwidgetprovider: intent.setData(Uri.parse(sameintent.toUri()))

If you could take a look at this segment of code


final Intent intent = new Intent(context, WeatherWidgetService.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]);

//********************************
//what is done here???
//********************************
intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));

final RemoteViews rv = new RemoteViews(context.getPackageName(),
R.layout.widget_layout);
rv.setRemoteAdapter(appWidgetIds[i], R.id.weather_list, intent);


This code is taken from:

http://developer.android.com/resources/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/WeatherWidgetProvider.html


I understand what "toUri" does for an intent. However in this case

1. the intent is explicitly invoking a service component
2. The service component is free to choose the extra parameters from the intent
3. If so why set the "data" to itself???

Appeciate if you can throw some light on this

Thanks
Satya

-- 

3. Android Camera Integration

4. Lesjaw Ardi wants to share their location with you on Google Latitude

5. [WTS] Aksesoris buat HTC Series (Desire HD (Otterbox),Nexus S (SGP)),Galaxy Tab(Zenus,Anycall) & Galaxy S

6. [WTShare] DIY motorola defy media dock modalnya magnet sama karton

7. Aplikasi di android market