lordplayboy2
New Member
I'm kind of new to developing in Android, so please forgive me in advance.However, I am looking into really basic, simple XML parsing from an online source (which has like...four or five lines of XML), and I've stumbled upon the official tutorial on the Android site. I've downloaded their source code as a reference, and when I try to run their app on my emulator, it immediately crashes.I saw somewhere that XML parsing on Android versions higher than 4 will cause the emulator to crash, but I MIGHT have misread it and I'm unsure. Anyone know why this is happening? My emulator runs Android 4.1.2.EDIT: I've also tried some other XML parsing tutorials that involve parsing XML from a .xml file. However, those all crash on my emulator as well. Not sure if this is beneficial to anyone or not.EDIT 2: From stack tracing:\[code\]12-13 17:12:59.341: E/Trace(631): error opening trace file: No such file or directory (2)12-13 17:12:59.611: D/AndroidRuntime(631): Shutting down VM12-13 17:12:59.631: W/dalvikvm(631): threadid=1: thread exiting with uncaught exception (group=0x40a13300)12-13 17:12:59.691: E/AndroidRuntime(631): FATAL EXCEPTION: main12-13 17:12:59.691: E/AndroidRuntime(631): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.networkusage/com.example.networkusage.NetworkActivity}: java.lang.ClassNotFoundException: com.example.networkusage.NetworkActivity12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread.access$600(ActivityThread.java:130)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)12-13 17:12:59.691: E/AndroidRuntime(631): at android.os.Handler.dispatchMessage(Handler.java:99)12-13 17:12:59.691: E/AndroidRuntime(631): at android.os.Looper.loop(Looper.java:137)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread.main(ActivityThread.java:4745)12-13 17:12:59.691: E/AndroidRuntime(631): at java.lang.reflect.Method.invokeNative(Native Method)12-13 17:12:59.691: E/AndroidRuntime(631): at java.lang.reflect.Method.invoke(Method.java:511)12-13 17:12:59.691: E/AndroidRuntime(631): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)12-13 17:12:59.691: E/AndroidRuntime(631): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)12-13 17:12:59.691: E/AndroidRuntime(631): at dalvik.system.NativeStart.main(Native Method)12-13 17:12:59.691: E/AndroidRuntime(631): Caused by: java.lang.ClassNotFoundException: com.example.networkusage.NetworkActivity12-13 17:12:59.691: E/AndroidRuntime(631): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)12-13 17:12:59.691: E/AndroidRuntime(631): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)12-13 17:12:59.691: E/AndroidRuntime(631): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)12-13 17:12:59.691: E/AndroidRuntime(631): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)12-13 17:12:59.691: E/AndroidRuntime(631): ... 11 more12-13 17:13:01.811: I/Process(631): Sending signal. PID: 631 SIG: 9\[/code\]