Greetings,
This error has been baffling my mind, and I'm sure there is a simple fix to this, but here is the situation.
Initially the activity loads perfectly. What I'm doing is loading an xml and parsing it into a listview. Each listview, except the header fields, open up a pdf. All of this works perfect.
Ok, now I press the home button and immediately come back to the program right where I left off on that activity. Once again, it works perfectly. I press the home button again. I wait about 3-4 min, open the program once again. It works perfectly. I press the home button again and wait 10 minutes then open up the program again. This time, I get a null reference error. What do I need to do to prevent this from happening? Here is the log:
LogCat connected to: (my galaxy nexus)
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (portal) Create, isFirst = true **
** Activity (portal) Resume **
** Activity (portal) Pause, UserClosed = true **
** Activity (collaterals) Create, isFirst = true **
** Activity (collaterals) Resume **
** Activity (collaterals) Pause, UserClosed = true **
** Activity (adapterslist) Create, isFirst = true **
** Activity (adapterslist) Resume **
** Activity (adapterslist) Pause, UserClosed = true **
** Activity (adapters) Create, isFirst = true **
** Activity (adapters) Resume **
** Activity (adapters) Pause, UserClosed = true **
** Activity (ql2400series) Create, isFirst = true **
Starting Job: Job1
** Activity (ql2400series) Resume **
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
** Service (httputilsservice) Destroy **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Create, isFirst = true **
Starting Job: Job1
httputils_internalcheckifcanstart (java line: 159)
java.lang.NullPointerException
at qlgc.pkg.httputils._internalcheckifcanstart(httputils.java:159)
at qlgc.pkg.httputils._downloadlist(httputils.java:78)
at qlgc.pkg.httputils._download(httputils.java:71)
at qlgc.pkg.ql2400series._activity_create(ql2400series.java:320)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at qlgc.pkg.ql2400series.afterFirstLayout(ql2400series.java:84)
at qlgc.pkg.ql2400series.access$100(ql2400series.java:16)
at qlgc.pkg.ql2400series$WaitForLayout.run(ql2400series.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
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:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
Thanks in advance for anyone that can solve this for me.
This error has been baffling my mind, and I'm sure there is a simple fix to this, but here is the situation.
Initially the activity loads perfectly. What I'm doing is loading an xml and parsing it into a listview. Each listview, except the header fields, open up a pdf. All of this works perfect.
Ok, now I press the home button and immediately come back to the program right where I left off on that activity. Once again, it works perfectly. I press the home button again. I wait about 3-4 min, open the program once again. It works perfectly. I press the home button again and wait 10 minutes then open up the program again. This time, I get a null reference error. What do I need to do to prevent this from happening? Here is the log:
LogCat connected to: (my galaxy nexus)
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (portal) Create, isFirst = true **
** Activity (portal) Resume **
** Activity (portal) Pause, UserClosed = true **
** Activity (collaterals) Create, isFirst = true **
** Activity (collaterals) Resume **
** Activity (collaterals) Pause, UserClosed = true **
** Activity (adapterslist) Create, isFirst = true **
** Activity (adapterslist) Resume **
** Activity (adapterslist) Pause, UserClosed = true **
** Activity (adapters) Create, isFirst = true **
** Activity (adapters) Resume **
** Activity (adapters) Pause, UserClosed = true **
** Activity (ql2400series) Create, isFirst = true **
Starting Job: Job1
** Activity (ql2400series) Resume **
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
** Service (httputilsservice) Destroy **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Create, isFirst = true **
Starting Job: Job1
httputils_internalcheckifcanstart (java line: 159)
java.lang.NullPointerException
at qlgc.pkg.httputils._internalcheckifcanstart(httputils.java:159)
at qlgc.pkg.httputils._downloadlist(httputils.java:78)
at qlgc.pkg.httputils._download(httputils.java:71)
at qlgc.pkg.ql2400series._activity_create(ql2400series.java:320)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at qlgc.pkg.ql2400series.afterFirstLayout(ql2400series.java:84)
at qlgc.pkg.ql2400series.access$100(ql2400series.java:16)
at qlgc.pkg.ql2400series$WaitForLayout.run(ql2400series.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
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:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
Thanks in advance for anyone that can solve this for me.