1
I believe the error occurs due to lack of memory. I get the following exception. When I enter the application and minimize the same, then I enter several applications minimizing the ones that were opened, I go back to the main application, gives the error of "Application stopped".
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.AndroidExplorer/com.AndroidExplorer.MainTab}: android.view.InflateException: Binary XML file line #22: Error inflating class fragment at android.app.Activitythread.performLaunchActivity(Activitythread.java:2121) at android.app.Activitythread.handleLaunchActivity(Activitythread.java:2146) at android.app.Activitythread.handleRelaunchActivity(Activitythread.java:3590) at android.app.Activitythread.access$800(Activitythread.java:140) at android.app.Activitythread$H.handleMessage(Activitythread.java:1244) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.Activitythread.main(Activitythread.java:4947) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.Internal.os.Zygoteinit$Methodandargscaller.run(Zygoteinit.java:1038) at com.android.Internal.os.Zygoteinit.main(Zygoteinit.java:805) at Dalvik.system.Nativestart.main(Native Method) Caused by: android.view.Inflateexception: Binary XML file line #22: Error inflating class Fragment at android.view.Layoutinflater.createViewFromTag(Layoutinflater.java:710) at android.view.Layoutinflater.rInflate(Layoutinflater.java:752) at android.view.Layoutinflater.rInflate(Layoutinflater.java:760) at android.view.Layoutinflater.inflate(Layoutinflater.java:495) at android.view.Layoutinflater.inflate(Layoutinflater.java:397) at android.view.Layoutinflater.inflate(Layoutinflater.java:353) com.android.Internal.policy.impl.PhoneWindow.setContentView(Phonewindow.java:318) at android.app.Activity.setContentView(Activity.java:1925) at com.AndroidExplorer.Maintab.onCreate(Maintab.java:78) at android.app.Activity.performCreate(Activity.java:5207) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094) at android.app.Activitythread.performLaunchActivity(Activitythread.java:2085) ... 12 more Caused by: java.lang.Illegalstateexception: Fragment com.AndroidExplorer.Clientetab Did not create a view. at android.support.v4.app.Fragmentactivity.onCreateView(Fragmentactivity.java:295) at android.view.Layoutinflater.createViewFromTag(Layoutinflater.java:682) ... 23 more
The error itself doesn’t say much. Put your code (layouts, activities, Fragment, etc). Something may have been poorly implemented.
– Márcio Oliveira
The error is only little but it seems that you have not implemented the method correctly
onCreateView()
of Fragment Clientetab.– ramaral
Yes, thank you for answering
– Marcelo
I put some classes below, of the possible problem, there is not an expected result yet. Maybe the problem occurs while rebuilding the screen.
– Marcelo