Fragment SuperAwesomeCardFragment{430a5280} is not currently in the FragmentManager - android

10-19 20:15:28.570: E/AndroidRuntime(612): java.lang.IllegalStateException: Fragment SuperAwesomeCardFragment{430a5280} is not currently in the FragmentManager
10-19 20:15:28.570: E/AndroidRuntime(612): at android.support.v4.app.FragmentManagerImpl.putFragment(FragmentManager.java:516)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.support.v4.app.FragmentStatePagerAdapter.saveState(FragmentStatePagerAdapter.java:185)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.support.v4.view.ViewPager.onSaveInstanceState(ViewPager.java:1072)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.View.dispatchSaveInstanceState(View.java:10010)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2304)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2310)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2310)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2310)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2310)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2310)
10-19 20:15:28.570: E/AndroidRuntime(612): at android.view.ViewGroup.dispatchSaveInstanceStat
I am getting this error. and then I am using tab activity whenever I change from frament or viewpager activity to move other activity to show this error from logcat. How to avoid this error ? Thanks in advance.

Related

Loading library to my project crash my app

i have a project using fr.northborders.AnimationPlayground to draw svg
when i add another library like Android-Bootstrapor MaterialDesignLibrary to project it will crash in runtime.
12-23 13:51:11.984: E/dalvikvm(4817): Could not find class 'fr.northborders.AnimationPlayground.FragmentAnimation.FragmentAnimationActivity', referenced from method fr.northborders.AnimationPlayground.Main.MainActivity.startDynamicForm
12-23 13:51:20.879: E/AndroidRuntime(4817): FATAL EXCEPTION: main
12-23 13:51:20.879: E/AndroidRuntime(4817): java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.northborders.AnimationPlayground/fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class fr.northborders.AnimationPlayground.DrawPathSvg.SvgView
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.access$600(ActivityThread.java:162)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.os.Handler.dispatchMessage(Handler.java:107)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.os.Looper.loop(Looper.java:194)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.main(ActivityThread.java:5371)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 13:51:20.879: E/AndroidRuntime(4817): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
12-23 13:51:20.879: E/AndroidRuntime(4817): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
12-23 13:51:20.879: E/AndroidRuntime(4817): at dalvik.system.NativeStart.main(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class fr.northborders.AnimationPlayground.DrawPathSvg.SvgView
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity.addSvgView(DrawPathSvgActivity.java:33)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity.onCreate(DrawPathSvgActivity.java:28)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.Activity.performCreate(Activity.java:5122)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1084)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 11 more
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: java.lang.reflect.InvocationTargetException
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Constructor.constructNative(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 20 more
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: java.lang.VerifyError: fr/northborders/AnimationPlayground/Utils/SvgHelper
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.SvgView.<init>(SvgView.java:32)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.SvgView.<init>(SvgView.java:52)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 23 more
after i tried a lot to fix this problem i figured out that the library res will not compile with project which i don't understand but i just merged all library projects together in new project (like copy all resource value drawable style and everything related).
now its work like a charm! :)

NullPointerexception in itemizedOverlay [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
in android application I am using the Google API for maps. I got the following exception. I want to know what exactly this exception means ?
10-19 23:45:06.619: E/AndroidRuntime(837): FATAL EXCEPTION: main
10-19 23:45:06.619: E/AndroidRuntime(837): java.lang.NullPointerException
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java:617)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java:586)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.ItemizedOverlay.handleMotionEvent(ItemizedOverlay.java:498)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.ItemizedOverlay.onTouchEvent(ItemizedOverlay.java:572)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java:63)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.google.android.maps.MapView.onTouchEvent(MapView.java:679)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.View.dispatchTouchEvent(View.java:3885)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1691)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1125)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.app.Activity.dispatchTouchEvent(Activity.java:2096)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1675)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2194)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.view.ViewRoot.handleMessage(ViewRoot.java:1878)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.os.Handler.dispatchMessage(Handler.java:99)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.os.Looper.loop(Looper.java:130)
10-19 23:45:06.619: E/AndroidRuntime(837): at android.app.ActivityThread.main(ActivityThread.java:3683)
10-19 23:45:06.619: E/AndroidRuntime(837): at java.lang.reflect.Method.invokeNative(Native Method)
10-19 23:45:06.619: E/AndroidRuntime(837): at java.lang.reflect.Method.invoke(Method.java:507)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
10-19 23:45:06.619: E/AndroidRuntime(837): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
10-19 23:45:06.619: E/AndroidRuntime(837): at dalvik.system.NativeStart.main(Native Method)
The sound like you forgot to add populate() in the constructor.
It should be like:
LocationItemizedOverlay(Drawable defaultMarker, Context context) {
super(boundCenterBottom(defaultMarker));
this.context = context;
populate(); // Add this
}
.....
Its happens on moving map

setText to an EditText from a string

I was trying to assign some text on my object inside an EditText. It returns some runtime exception. myObj.address has values and I am able to toast it by getAddress.toString().
my_edittext = (EditText).findViewById(R.id.myedittext);
my_edittext.setText(myObj.getAddress().toString());
How do I set this text inside my EditText? I doubt if .setText only accepts charSequence, then how do I convert my string to charSequnce ?
Edit: my Logcat here
10-19 13:58:40.719: D/AndroidRuntime(4344): Shutting down VM
10-19 13:58:40.719: W/dalvikvm(4344): threadid=1: thread exiting with uncaught exception (group=0x40a0d1f8)
10-19 13:58:40.729: E/AndroidRuntime(4344): FATAL EXCEPTION: main
10-19 13:58:40.729: E/AndroidRuntime(4344): java.lang.NullPointerException
10-19 13:58:40.729: E/AndroidRuntime(4344): at com.x.y.z.activity.NewEntryActivity$3.onClick(NewEntryActivity.java:677)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.view.View.performClick(View.java:3511)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.view.View$PerformClick.run(View.java:14105)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.os.Handler.handleCallback(Handler.java:605)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.os.Handler.dispatchMessage(Handler.java:92)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.os.Looper.loop(Looper.java:137)
10-19 13:58:40.729: E/AndroidRuntime(4344): at android.app.ActivityThread.main(ActivityThread.java:4424)
10-19 13:58:40.729: E/AndroidRuntime(4344): at java.lang.reflect.Method.invokeNative(Native Method)
10-19 13:58:40.729: E/AndroidRuntime(4344): at java.lang.reflect.Method.invoke(Method.java:511)
10-19 13:58:40.729: E/AndroidRuntime(4344): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
10-19 13:58:40.729: E/AndroidRuntime(4344): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
10-19 13:58:40.729: E/AndroidRuntime(4344): at dalvik.system.NativeStart.main(Native Method)
I think it should be
my_edittext.setText(myObj.getAddress().toString());

android weird error while launching application

I am getting this error while launching the app, and I have checked the manifest file and the activities are there. Rathbones is the main activity.
10-19 13:27:14.796: ERROR/AndroidRuntime(441): FATAL EXCEPTION: main
10-19 13:27:14.796: ERROR/AndroidRuntime(441): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.rathbones.src/com.rathbones.src.RathbonesActivity}: java.lang.InstantiationException: com.rathbones.src.RathbonesActivity
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1739)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread.access$500(ActivityThread.java:122)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.os.Handler.dispatchMessage(Handler.java:99)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.os.Looper.loop(Looper.java:132)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread.main(ActivityThread.java:4123)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at java.lang.reflect.Method.invokeNative(Native Method)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at java.lang.reflect.Method.invoke(Method.java:491)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at dalvik.system.NativeStart.main(Native Method)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): Caused by: java.lang.InstantiationException: com.rathbones.src.RathbonesActivity
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at java.lang.Class.newInstanceImpl(Native Method)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at java.lang.Class.newInstance(Class.java:1301)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.Instrumentation.newActivity(Instrumentation.java:1022)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1730)
10-19 13:27:14.796: ERROR/AndroidRuntime(441): ... 11 more
10-19 13:27:14.806: WARN/ActivityManager(78): Force finishing activity com.rathbones.src/.RathbonesActivity
check if the .RathbonesActivity activity is in your main package say com.activity.RathbonesActivity
or to be sure write full path in activity declaration in manifest as com.packagename.RathbonesActivity
check this StackOverflow Question to understand what the "." dot means and how to use it.

Switching between activities in a tab gives error the application has stopped unexpectedly. Please try again

I am working on android application and I am struck at the below error. Can anybody of you help me out with this error:
When I switch between activities in a tab I was able to do it for 2 times on 3rd time I get the error saying Sorry...application has stopped unexpectedly. Please try again.
I tried to take the info from LogCat file below is the information:
10-19 03:21:53.794: INFO/dalvikvm(460): threadid=1: stack overflow on call to Lsun/misc/Unsafe;.compareAndSwapInt:ZLJII
10-19 03:21:53.804: INFO/dalvikvm(460): method requires 24+20+0=44 bytes, fp is 0x4186931c (28 left)
10-19 03:21:53.804: INFO/dalvikvm(460): expanding stack end (0x41869300 to 0x41869000)
10-19 03:21:53.815: INFO/dalvikvm(460): Shrank stack (to 0x41869300, curFrame is 0x4186bc60)
10-19 03:21:53.844: DEBUG/AndroidRuntime(460): Shutting down VM
10-19 03:21:53.854: WARN/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): FATAL EXCEPTION: main
10-19 03:21:53.984: ERROR/AndroidRuntime(460): java.lang.StackOverflowError
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at java.util.concurrent.locks.AbstractQueuedSynchronizer.compareAndSetState(AbstractQueuedSynchronizer.java:522)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:182)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:261)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:490)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewTreeObserver.removeOnPreDrawListener(ViewTreeObserver.java:377)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.TextView.onDraw(TextView.java:3875)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6740)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.View.draw(View.java:6743)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.widget.FrameLayout.draw(FrameLayout.java:352)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
10-19 03:21:53.984: ERROR/AndroidRuntime(460): at android.view
10-19 03:21:54.265: DEBUG/dalvikvm(460): GC_FOR_MALLOC freed 3579 objects / 314384 bytes in 218ms
10-19 03:21:54.335: WARN/ActivityManager(59): Force finishing activity com.muo.Livegroups/.Main
10-19 03:21:54.984: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}
10-19 03:21:57.244: INFO/Process(460): Sending signal. PID: 460 SIG: 9
10-19 03:21:57.334: INFO/ActivityManager(59): Process com.muo.Livegroups (pid 460) has died.
10-19 03:21:57.364: INFO/WindowManager(59): WIN DEATH: Window{45054b98 com.muo.Livegroups/com.muo.Livegroups.Main paused=false}
10-19 03:21:57.414: WARN/InputManagerService(59): Got RemoteException sending setActive(false) notification to pid 460 uid 10036
10-19 03:22:04.183: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
10-19 03:22:06.441: WARN/ActivityManager(59): Activity destroy timeout for HistoryRecord{450548b0 com.muo.Livegroups/.Main}
I tried to use logcat and got the above information.
Can anybody help me to find the solution I get the error only when I go to different activity on 3rd time. First 2 times it works fine.
Your UI is too complicated, and you are running out of stack space when trying to render it. Use Hierarchy View and try to reduce the number of layers between the root View of your activity and the farthest leaves.

Categories

Resources