[android-developers] Re: Unexpected error

2011-03-21 Thread rishabh agrawal
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


On Mar 21, 2:30 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
  so how to remove these error,please guide me.

 That's simple - fix it. That usually works for untold issues.
 And in general - you forgot to quite your crash log

 Regards,
 Marcin Orlowski

 Tray Agenda http://bit.ly/trayagenda - 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

-- 
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 android.rish...@gmail.com 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

[android-developers] Re: Unexpected error

2011-03-21 Thread rishabh agrawal
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
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2242)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
127)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:
339)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost
$IntentContentStrategy.getContentView(TabHost.java:631)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost.setCurrentTab(TabHost.java:317)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:127)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:346)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.performClick(View.java:2344)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.onTouchEvent(View.java:4133)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.View.dispatchTouchEvent(View.java:3672)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:850)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1202)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.os.Looper.loop(Looper.java:123)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.app.ActivityThread.main(ActivityThread.java:4203)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
java.lang.reflect.Method.invokeNative(Native Method)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
java.lang.reflect.Method.invoke(Method.java:521)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
dalvik.system.NativeStart.main(Native Method)
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
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
03-21 18:04:46.301: ERROR/AndroidRuntime(196): at

Re: [android-developers] Re: Unexpected error

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 7:43 AM, rishabh agrawal
android.rish...@gmail.comwrote:

 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 http://sites.google.com/site/rezmobileapps/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 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 treking...@gmail.com 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 http://sites.google.com/site/rezmobileapps/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 Marcin Orlowski
On 21 March 2011 13:43, rishabh agrawal android.rish...@gmail.com 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 http://bit.ly/trayagenda - 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 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 
android.rish...@gmail.com 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 http://sites.google.com/site/rezmobileapps/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