Re: [android-developers] Re: Unexpected error

2011-03-21 Thread Kostya Vasilyev

Erm... looking further down the call stack:

21.03.2011 15:43, rishabh agrawal ?:

03-21 18:04:46.301: ERROR/AndroidRuntime(196):*Caused by:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget*
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.nativeCreate(Native Method)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createBitmap(Bitmap.java:468)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createBitmap(Bitmap.java:435)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)


Perhaps an application-provided view class referenced in the XML tries 
to create a humongous bitmap ?


-- Kostya

21.03.2011 15:54, TreKing ?:
On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal 
mailto:android.rish...@gmail.com>> wrote:


03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused
by:* android.view.InflateException: Binary XML file line #18:
Error inflating class java.lang.reflect.Constructor


There's an error in your XML (probably layout) file. Fix it.

-
TreKing  - Chicago 
transit tracking app for Android-powered devices


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



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 13:43, rishabh agrawal  wrote:

Here is something to investigate further

03-21 18:04:46.292: WARN/WindowManager(48): No window to dispatch
> pointer action 1
> 03-21 18:04:46.301: ERROR/AndroidRuntime(196):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.sai.s/com.sai.s.bs}: android.view.InflateException:
> Binary XML file line #18: Error inflating class
> java.lang.reflect.Constructor
>

and add try/catch block around your startActivity()

Regards,
Marcin Orlowski

Tray Agenda  - keep you daily schedule handy...

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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread David Caunt
03-21 18:04:46.301: ERROR/AndroidRuntime(196): Caused by:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget

Looks like you're using too much memory



On 21 March 2011 12:54, TreKing  wrote:

> On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal <
> android.rish...@gmail.com> wrote:
>
>> 03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused by:* 
>> android.view.InflateException:
>> Binary XML file line #18: Error inflating class
>> java.lang.reflect.Constructor
>>
>
> There's an error in your XML (probably layout) file. Fix it.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>

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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal
wrote:

> 03-21 18:04:46.301: ERROR/AndroidRuntime(196): *Caused by:* 
> android.view.InflateException:
> Binary XML file line #18: Error inflating class
> java.lang.reflect.Constructor
>

There's an error in your XML (probably layout) file. Fix it.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread Marcin Orlowski
On 21 March 2011 12:54, rishabh agrawal  wrote:

> 03-21 11:49:32.092: ERROR/AndroidRuntime(234): Uncaught handler:
> thread main exiting due to uncaught exception
>
>
> these error is occures how to remove it
>

Use try/catch syntax around the call that causes this problem. read log
around this line - you shall find out more detailed information on where the
real culprit lurks.

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