Android Question Unexpected event

ilan

Expert
Licensed User
Longtime User
hi

i am using @Informatix ArchiverPlusZip Lib and i get an error in the logs:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Panel size is unknown. Layout may not be loaded correctly.
Panel size is unknown. Layout may not be loaded correctly.
** Activity (main) Resume **
allshift.db, false, 16384
pc.zip, false, 198975
DownloadCompleted: true
Unexpected event (missing RaiseSynchronousEvents): unmyzip_zipresult
Check the unfiltered logs for the full stack trace.

i need to mention that the app is working i just dont understand what that msg means?

Unexpected event (missing RaiseSynchronousEvents): unmyzip_zipresult


thanx, ilan
 

ilan

Expert
Licensed User
Longtime User
ok small correction. in release mode i get a crash!

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Panel size is unknown. Layout may not be loaded correctly.
Panel size is unknown. Layout may not be loaded correctly.
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Class not found: anywheresoftware.b4a.samples.customlistview.customlistview, trying: www.sagital.mysalarynew.customlistview
Panel size is unknown. Layout may not be loaded correctly.
Panel size is unknown. Layout may not be loaded correctly.
** Activity (main) Resume **
main_myzip_zipresult (java line: 5821)
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.widget.Toast$TN.<init>(Toast.java:622)
at android.widget.Toast.<init>(Toast.java:137)
at android.widget.Toast.makeText(Toast.java:385)
at anywheresoftware.b4a.keywords.Common.ToastMessageShow(Common.java:403)
at www.sagital.mysalarynew.main._myzip_zipresult(main.java:5821)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at a.a.a.f.a.a(SourceFile:88)
at a.a.a.f.a.c(SourceFile:155)
at a.a.a.f.a.a(SourceFile:163)
at a.a.a.i.a.a(SourceFile:190)
at a.a.a.i.a$1.run(SourceFile:1101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)

so app works only in debug mode.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
ok i solved the problem.

it seems like putting a toastmsg or msgbox inside the _ZipResult event of the archiverplusZip lib will cause this crash so what i did is, i put the msgbox in another sub and call that sub with CallSubDelayed and now its working.
 
Upvote 0

Ferdari

Active Member
Licensed User
Longtime User
Where do you put the CallSubdelayed?

if i put in Archiver_ZipResult it returns the same error.

Thanks in advance!;)
 
Upvote 0
Top