I have some problem with Archiver library and I don't understand why.
When generates the event unzip_UnZipProgression I have this error:
If I uncomment Msgbox(Count,"") the error becomes :
Could you help me please ?
Thank you
B4X:
Sub globals
Private LblPercentuale As Label
end sub
...
sub mySubroutine
Dim arc As Archiver
arc.AsyncUnZip(Utili.GetPath(NomeFile),Utili.GetFileName(NomeFile),sDBLocation,"unzip")
end Sub
...
...
Sub unzip_UnZipProgression(Count As Int, FileName As String)
'Msgbox(Count,"")
LblPercentuale.Text=Count
End Sub
When generates the event unzip_UnZipProgression I have this error:
B4X:
main_unzip_unzipprogression (java line: 4904)
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
If I uncomment Msgbox(Count,"") the error becomes :
B4X:
main_unzip_unzipprogression (java line: 4904)
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
Could you help me please ?
Thank you