thanks.... yes.. nearly at the same time u wrote me i found the
same...
its             obm = Bitmap.createBitmap(ob.getWidth(), ob.getHeight(),
ob.getConfig());

but what is different here since 1.5  because there it worked?

chris




On 8 Nov., 17:23, Mark Murphy <mmur...@commonsware.com> wrote:
> guruk wrote:
> > Hi There,
>
> > I have 4 Widgets
> > 2 collected in / small widgets  -> works both fine
> > 2 collected in / big widgets -> here one works and the other crash
>
> > its strange because the second widget from the big widget is so
> > similar build that i dont find an error.
> > Finaly it causes "MyDays" to crash often when the UpdateWidget
> > Function is called.
>
> > I just get errors like:
>
> > I/ActivityManager(   62): Starting activity: Intent
> > { act=android.appwidget.action.APPWIDGET_CONFIGURE
> > cmp=com.chris.mydays/.setwidgetuser (has extras) }
> > W/InputManagerService(   62): Window already focused, ignoring focus
> > gain of: com.android.internal.view.IInputMethodClient$Stub
> > $pr...@43ae5ab8
> > D/AndroidRuntime( 1057): Shutting down VM
> > W/dalvikvm( 1057): threadid=3: thread exiting with uncaught exception
> > (group=0x4001b188)
> > E/AndroidRuntime( 1057): Uncaught handler: thread main exiting due to
> > uncaught exception
> > D/dalvikvm( 1057): GC freed 3158 objects / 337152 bytes in 113ms
> > E/AndroidRuntime( 1057): java.lang.RuntimeException: Unable to start
> > service com.chris.mydays.updatewidg...@43aeafe8 with Intent
> > { cmp=com.chris.mydays/.UpdateWidgets (has extras) }:
> > java.lang.NullPointerException
> > E/AndroidRuntime( 1057):   at
> > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2840)
> > E/AndroidRuntime( 1057):   at android.app.ActivityThread.access$3500
> > (ActivityThread.java:119)
> > E/AndroidRuntime( 1057):   at android.app.ActivityThread$H.handleMessage
> > (ActivityThread.java:1884)
> > E/AndroidRuntime( 1057):   at android.os.Handler.dispatchMessage
> > (Handler.java:99)
> > E/AndroidRuntime( 1057):   at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime( 1057):   at android.app.ActivityThread.main
> > (ActivityThread.java:4310)
> > E/AndroidRuntime( 1057):   at java.lang.reflect.Method.invokeNative
> > (Native Method)
> > E/AndroidRuntime( 1057):   at java.lang.reflect.Method.invoke
> > (Method.java:521)
> > E/AndroidRuntime( 1057):   at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:860)
> > E/AndroidRuntime( 1057):   at com.android.internal.os.ZygoteInit.main
> > (ZygoteInit.java:618)
> > E/AndroidRuntime( 1057):   at dalvik.system.NativeStart.main(Native
> > Method)
> > E/AndroidRuntime( 1057): Caused by: java.lang.NullPointerException
> > E/AndroidRuntime( 1057):   at android.graphics.Bitmap.createBitmap
> > (Bitmap.java:468)
> > E/AndroidRuntime( 1057):   at com.chris.mydays.UpdateWidgets.CNewBitmap
> > (UpdateWidgets.java:255)
> > E/AndroidRuntime( 1057):   at
> > com.chris.mydays.UpdateWidgets.updateAppWidget(UpdateWidgets.java:227)
> > E/AndroidRuntime( 1057):   at com.chris.mydays.UpdateWidgets.onStart
> > (UpdateWidgets.java:95)
> > E/AndroidRuntime( 1057):   at android.app.Service.onStartCommand
> > (Service.java:306)
> > E/AndroidRuntime( 1057):   at
> > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2831)
> > E/AndroidRuntime( 1057):   ... 10 more
>
> > or
>
> > D/dalvikvm( 1086): VM cleaning up
> > E/AndroidRuntime( 1086): ERROR: thread attach failed
> > D/dalvikvm( 1086): LinearAlloc 0x0 used 634508 of 5242880 (12%)
> > D/dalvikvm( 1093): GC freed 5890 objects / 431768 bytes in 223ms
> > D/AndroidRuntime( 1093): Shutting down VM
> > W/dalvikvm( 1093): threadid=3: thread exiting with uncaught exception
> > (group=0x4001b188)
> > E/AndroidRuntime( 1093): Uncaught handler: thread main exiting due to
> > uncaught exception
> > E/AndroidRuntime( 1093): java.lang.RuntimeException: Unable to start
> > service com.chris.mydays.updatewidg...@43abf2f0 with Intent
> > { cmp=com.chris.mydays/.UpdateWidgets (has extras) }:
> > java.lang.NullPointerException
> > E/AndroidRuntime( 1093):   at
> > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2840)
> > E/AndroidRuntime( 1093):   at android.app.ActivityThread.access$3500
> > (ActivityThread.java:119)
> > E/AndroidRuntime( 1093):   at android.app.ActivityThread$H.handleMessage
> > (ActivityThread.java:1884)
> > E/AndroidRuntime( 1093):   at android.os.Handler.dispatchMessage
> > (Handler.java:99)
> > E/AndroidRuntime( 1093):   at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime( 1093):   at android.app.ActivityThread.main
> > (ActivityThread.java:4310)
> > E/AndroidRuntime( 1093):   at java.lang.reflect.Method.invokeNative
> > (Native Method)
> > E/AndroidRuntime( 1093):   at java.lang.reflect.Method.invoke
> > (Method.java:521)
> > E/AndroidRuntime( 1093):   at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:860)
> > E/AndroidRuntime( 1093):   at com.android.internal.os.ZygoteInit.main
> > (ZygoteInit.java:618)
> > E/AndroidRuntime( 1093):   at dalvik.system.NativeStart.main(Native
> > Method)
> > E/AndroidRuntime( 1093): Caused by: java.lang.NullPointerException
> > E/AndroidRuntime( 1093):   at android.graphics.Bitmap.createBitmap
> > (Bitmap.java:468)
> > E/AndroidRuntime( 1093):   at com.chris.mydays.UpdateWidgets.CNewBitmap
> > (UpdateWidgets.java:255)
> > E/AndroidRuntime( 1093):   at
> > com.chris.mydays.UpdateWidgets.updateAppWidget(UpdateWidgets.java:227)
> > E/AndroidRuntime( 1093):   at com.chris.mydays.UpdateWidgets.onStart
> > (UpdateWidgets.java:95)
> > E/AndroidRuntime( 1093):   at android.app.Service.onStartCommand
> > (Service.java:306)
> > E/AndroidRuntime( 1093):   at
> > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2831)
> > E/AndroidRuntime( 1093):   ... 10 more
>
> > any help is welcomed... also i would show more source to an
> > experienced coder... just i need soon an solution.
>
> It would appear there is a flaw in line 225 of UpdateWidgets.java, where
> you are calling Bitmap.createBitmap().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> App Widgets Deep Dive Seminar, 27 January 2010:http://bit.ly/deepdive

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