Results 1 to 3 of 3

Thread: Fragments

  1. #1
    New to AndroidZA
    Join Date
    Dec 2011
    Location
    Limpopo province
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation Fragments

    I am trying to develop an app that uses a stand-alone activity as an entry point(log in screen). Fragments only come in when the user has logged in. Problem is when I hit the log in button, the emulator says the app has stopped working. I've declared all my activities in the android manifest file so I cant seem to understand what the problem is and I am stuck.

  2. #2
    Administrator
    Join Date
    Apr 2010
    Location
    Midrand
    Posts
    564
    Thanks
    1
    Thanked 25 Times in 16 Posts
    Rep Power
    16
    What does log cat show?
    Web: http://tobykurien.com
    Twitter: @tobykurien
    Hire me for Android development: http://tobykurien.com/android-development-south-africa/

  3. #3
    New to AndroidZA
    Join Date
    Dec 2011
    Location
    Limpopo province
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    This is the logcat's output...

    07-08 06:17:14.910: I/Choreographer(10804): Skipped 43 frames! The application may be doing too much work on its main thread.
    07-08 06:17:18.460: I/Choreographer(10804): Skipped 131 frames! The application may be doing too much work on its main thread.
    07-08 06:17:19.430: W/dalvikvm(10804): dvmFindClassByName rejecting ' za.co.codeshift.vdp.EventListFragment'
    07-08 06:17:19.483: D/AndroidRuntime(10804): Shutting down VM
    07-08 06:17:19.483: W/dalvikvm(10804): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
    07-08 06:17:19.870: E/AndroidRuntime(10804): FATAL EXCEPTION: main
    07-08 06:17:19.870: E/AndroidRuntime(10804): java.lang.RuntimeException: Unable to start activity ComponentInfo{za.co.codeshift.vdp/za.co.codeshift.vdp.HomeActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class fragment
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2059)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2084)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread.access$600(ActivityThre ad.java:130)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1195)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.os.Handler.dispatchMessage(Handler.java:99 )
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.os.Looper.loop(Looper.java:137)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread.main(ActivityThread.jav a:4745)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at java.lang.reflect.Method.invokeNative(Native Method)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at java.lang.reflect.Method.invoke(Method.java:511)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:786)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:553)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at dalvik.system.NativeStart.main(Native Method)
    07-08 06:17:19.870: E/AndroidRuntime(10804): Caused by: android.view.InflateException: Binary XML file line #36: Error inflating class fragment
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:704)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:746)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:749)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.inflate(LayoutInflater .java:489)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.inflate(LayoutInflater .java:396)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at com.android.internal.policy.impl.PhoneWindow.setCo ntentView(PhoneWindow.java:256)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Activity.setContentView(Activity.java: 1867)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at za.co.codeshift.vdp.HomeActivity.onCreate(HomeActi vity.java:12)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Activity.performCreate(Activity.java:5 00
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1079)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2023)
    07-08 06:17:19.870: E/AndroidRuntime(10804): ... 11 more
    07-08 06:17:19.870: E/AndroidRuntime(10804): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment za.co.codeshift.vdp.EventListFragment: make sure class name exists, is public, and has an empty constructor that is public
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Fragment.instantiate(Fragment.java:584 )
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Fragment.instantiate(Fragment.java:552 )
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Activity.onCreateView(Activity.java:46 56)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:680)
    07-08 06:17:19.870: E/AndroidRuntime(10804): ... 22 more
    07-08 06:17:19.870: E/AndroidRuntime(10804): Caused by: java.lang.ClassNotFoundException: za.co.codeshift.vdp.EventListFragment
    07-08 06:17:19.870: E/AndroidRuntime(10804): at dalvik.system.BaseDexClassLoader.findClass(BaseDex ClassLoader.java:61)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 01)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at java.lang.ClassLoader.loadClass(ClassLoader.java:4 61)
    07-08 06:17:19.870: E/AndroidRuntime(10804): at android.app.Fragment.instantiate(Fragment.java:574 )
    07-08 06:17:19.870: E/AndroidRuntime(10804): ... 25 more
    07-08 06:17:20.022: D/dalvikvm(10804): GC_CONCURRENT freed 143K, 3% free 8320K/8519K, paused 133ms+26ms, total 479ms

Visitors found this page by searching for:

the application may be doing too much work on its main thread

the application may be doing too much work on its main

Skipped 43 frames! The application may be doing too much work on its main thread.

android The application may be doing too much work on its main threadskipped 61 frames! the application may be doing too much work on its main thread.Choreographer The application may be doing too much work on its main thread.The application may be doing too much work on its main thread.android.view.InflateException: Binary XML file line #2: Error inflating class fragmentandroid binary xml file line #1 error inflating class fragmentunable to start activity componentinfo binary xml file line #36android.view.inflateexception binary xml file line error inflating class fragmentChoreographer Skipped frames! The application may be doing too much work on its main thread. The application may be doing too much work on its main thread.frames! The application may be doing too much work on its main thread. jni nativebinary xml file line error inflating class fragmentandoid & fragments & skipped framesbinary xml error inflating class fragment 4.0inflateexception binary xml file line class fragment runtimeexception componentinfofragment Unable to start activity ComponentInfoskipped 43 frames choreographerskipped 43 frames안드로이드 fragment inflateexceptionactivity may be doing too much on its main threaddvmFindClassByName rejecting androidandroid error binary xml file #36
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •