B4A Library ProBundle

Informatix

Expert
Licensed User
Longtime User
If the lib does not use Android specific methods then it should work. Android Async Task for example will not work in a B4J library.

You need to use the B4J Version of SLC to compile it to a b4j library.
Maybe you can give it a try?
It's more complicated than that as B4J uses Java8. ArchiverPlusZip, which is optimized/shrinked by ProGuard, is not compatible because of that (Java 8 needs a valid stack map table, which is useless under Android and thus not updated by ProGuard).
 

aidymp

Well-Known Member
Licensed User
Longtime User
Just a few quick questions with ArchiverPlusZIP

when UNZIPPING sometime i want to overwrite existing files, the library appears to hang in this situation? - I would expect it to overwrite the existing file?
when ZIPPING if the output file exists, the library appears to hang in this situation? - I would expect it to update the existing file?

The question I asked in this post https://www.b4x.com/android/forum/threads/probundle-chargeable.58754/page-3#post-375370 regarding adding 3 folders within a folder

In 7zip adding an extra / at the end would exclude the top level folder could this be added??

eg

MAINFOLDER
SUB1
SUB2
SUB3

The command in 7 zip (simplified) 7zip a mynewzipfile.zip MAINFOLDER//
would result in a zip containing the following!

SUB1
SUB2
SUB3

Thanks and Happy Holidays to you!
 

Informatix

Expert
Licensed User
Longtime User

You should post an example that exhibits the issue because I overwrote millions of files during my many tests and never saw any problem.
Note that I won't look at this case before 2016.


I don't want to use this trick because it's not intuitive and create confusion (looking at a path ending by "//", some may think it's a network path, not a folder that should not be included). If you want to include everything under a folder without this folder, it's not very complicated so I don't feel the need to add something to the library. Example:
B4X:
Dim FileList As List = File.ListFiles(MyFolder)
Dim MyList As List
MyList.Initialize
For i = 0 To FileList.Size - 1
        Dim FileName As String = FileList.Get(i)
        If File.IsDirectory(MyFolder, FileName) Then
            Arc.AddFolderToZip(MyFolder & "/" & FileName, ArchiveFolder & "MyZip.zip", "Archiver")
        Else
            MyList.Add(MyFolder & "/" & FileName)
        End If
Next
Arc.AddFilesToZip(MyList, ArchiveFolder & "MyZip.zip", "Archiver")
 

Cnrez

Member
Licensed User
Longtime User
good day informatix,
i just donated for Probundle just now, please kindly check and confirm.

thank you
 

susu

Well-Known Member
Licensed User
Longtime User
Hi @Informatix
I have a quick question so I ask here instead writing email to you.
Why ArchiverPlusZip lib only works with zip file on DirRootExternal? If I read zip file on DirDefaultExternal it always crash with error: a.a.a.c.a: zip file does not exist

Thank you.
 

Informatix

Expert
Licensed User
Longtime User
I tested by replacing DirRoot by DirDefault in the lib example and everything worked fine. Could you try the same to check whether it's related to your project or your device?
 

susu

Well-Known Member
Licensed User
Longtime User
I tested by replacing DirRoot by DirDefault in the lib example and everything worked fine. Could you try the same to check whether it's related to your project or your device?

You're right.
This code is not work:
File.DirDefaultExternal & "file.zip"
But this worked:
File.DirDefaultExternal & "/file.zip"
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Just a thanks again @Informatix.
After going through the 'protect your app' PDF I have really got a handle of what works and what does not in APP protection.
Really a good read, I had no idea how easy it is to get inside a APP.
 

demasi

Active Member
Licensed User
Longtime User
Hello, @Informatix,

I want to contribute and use some features of your fantastic library, but I need to know if the debug overlay have methods like show and hide, so we can have this behavior in a toggle button, or swipe gesture.
The protection library is another libary or is included in this probundle?
I´m a user of your another fantastic library, ULV.

Thanks!
 

Informatix

Expert
Licensed User
Longtime User
Yes, it has. Look at this help document.
There's no protection library, but some of the libraries in the bundle can be used to protect your app. This is explained in the provided PDF guides.
 

Attachments

  • OverlayWindow_help.zip
    1.8 KB · Views: 306

demasi

Active Member
Licensed User
Longtime User
@Informatix,

As an idea for a future upgrade of the overlay window, it would be nice if you craete inside the lib a mode that works like the one created by @DonManfred, jut a log window, without the need to add views, listviews, buttons etc. So we just need to dim, initialize and start using as a log window.

I know the source code is attached with the lib, but unfortunately my java knowledge is not enough to do this.

Thanks.
thanks @DonManfred too for informing about this lib.
 

Informatix

Expert
Licensed User
Longtime User
The overlay window is just a window with a panel, like the activities are. It is supposed to hold various views and serve many purposes, like the activities. There's no strong reason to my eyes to weighten the lib code with a log feature that's limited to a specific purpose. I think that the existing example should be enough as it covers the need and can be modified easily.
Here's another example for this library that uses also a ListView but in a different manner than the logger example.
 

Attachments

  • OverlayClipboard.zip
    5.9 KB · Views: 282

ilan

Expert
Licensed User
Longtime User
hi

is it possible with the ArchiverPlusZIP to zip only specific files?

like create a list of few files and create a zip only from the files in the list?

thanx
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…