The problem is this, the first landing from loginactivity page (let us call A), jump to the second page (let us call B), it will parse an XML document locally, and then the XML document is on page B listview in the display. A page when you press the Login button, the page will be successful jump to B, B page LISTVIEW data can occur. However, staying in B page about a second time (almost flashed), the program automatically jumps back to A and pages, then, if the press button A on the landing, the program automatically quit.
Here is the logcat the error message:
11-19 16:44:32.019: E / StrictMode (1601): A resource was acquired at attached stack trace but never released See java.io.Closeable for information on avoiding resource leaks ..11-19 16:44:32.019: E / StrictMode (1601): java.lang.Throwable: Explicit termination method 'close' not called 11-19 16:44:32.019: E / StrictMode (1601): at dalvik.system.CloseGuard.open (CloseGuard.java: 184) 11-19 16:44:32.019: E / StrictMode (1601): at java.io.FileInputStream . (FileInputStream.java: 80) 11-19 16:44:32.019: E / StrictMode (1601): at com.doctorstation.BLL.EntityService.setInputStream (EntityService.java: 46) 11-19 16:44:32.019: E / StrictMode (1601): at com.doctorstation.BLL.EntityService . (EntityService.java: 34) 11-19 16:44:32.019: E / StrictMode (1601): at com.doctorstation.UI.LoginActivity $ 1.onClick (LoginActivity.java: 130) 11-19 16:44:32.019: E / StrictMode (1601): at android.view.View.performClick (View.java: 3511) 11-19 16:44:32.019: E / StrictMode (1601): at android.view.View $ PerformClick.run (View.java: 14109) 11-19 16:44:32.019: E / StrictMode (1601): at android.os.Handler.handleCallback (Handler.java: 605) 11-19 16:44:32.019: E / StrictMode (1601): at android.os.Handler.dispatchMessage (Handler.java: 92) 11-19 16:44:32.019: E / StrictMode (1601): at android.os.Looper.loop (Looper.java: 137) 11-19 16:44:32.019: E / StrictMode (1601): at android.app.ActivityThread.main (ActivityThread.java: 4424) 11-19 16:44:32.019: E / StrictMode (1601): at java.lang.reflect.Method.invokeNative (Native Method) 11-19 16:44:32.019: E / StrictMode (1601): at java.lang.reflect.Method.invoke (Method.java: 511) 11-19 16:44:32.019: E / StrictMode (1601): at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java: 784) 11-19 16:44:32.019: E / StrictMode (1601): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java: 551) 11-19 16:44:32.019: E / StrictMode (1601): at dalvik.system.NativeStart.main (Native Method) 11-19 16:44:32.019: W / System.err (1601): StrictMode VmPolicy violation with POLICY_DEATH; shutting down .
No comments:
Post a Comment