I first tried getting it to work with this one (see end of thread):
https://www.b4x.com/android/forum/threads/sd-ziplibrary.90733/
Then I tried getting it to work with this one:
https://www.b4x.com/android/forum/threads/lib-archiver.21688/
I don't like having a bunch of async subs jumping execution all around the place - hard to read and maintain. So, that's why I want to use Wait For because it keeps code flow clear and contained.
I must be doing something wrong because this is the second ZIP lib I am trying to get working with "Wait For" without any success.
I tried all FOUR "wait for" lines below and the code just hangs on them (obviously I tried them one at a time :
(This code is in a sub within the Main Activity)
https://www.b4x.com/android/forum/threads/sd-ziplibrary.90733/
Then I tried getting it to work with this one:
https://www.b4x.com/android/forum/threads/lib-archiver.21688/
I don't like having a bunch of async subs jumping execution all around the place - hard to read and maintain. So, that's why I want to use Wait For because it keeps code flow clear and contained.
I must be doing something wrong because this is the second ZIP lib I am trying to get working with "Wait For" without any success.
I tried all FOUR "wait for" lines below and the code just hangs on them (obviously I tried them one at a time :
(This code is in a sub within the Main Activity)
B4X:
'export app settings
Dim Zip As ArchiverPlusZip
Dim SF As List
SF.Initialize
SF.Add(File.Combine(File1Dir,"mydatabase.db"))
SF.Add(File.Combine(File2Dir,"com.myapp_preferences.xml"))
Zip.AddFilesToZip(SF,File.Combine(ZipDir,"MyApp_Settings.zip"),"Zip")
Wait for ZipResult(Result As Int, ErrorMsg As String)
Wait for (Zip) ZipResult(Result As Int, ErrorMsg As String)
Wait for Zip_ZipResult(Result As Int, ErrorMsg As String)
Wait for (Zip) Zip_ZipResult(Result As Int, ErrorMsg As String)
Last edited: