Android Question [Solved] open/extract a password protected zip file

AnandGupta

Expert
Licensed User
Longtime User
I need to open/extract a password protected zip file.
I downloaded Informatix probundle https://www.b4x.com/android/forum/threads/probundle-chargeable.58754/

I am trying the ArchiverPlusZip v1.13 Pw, but getting error,

B4X:
Logger connected to:  Xiaomi Redmi 4
--------- beginning of main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_activity_resume (java line: 424)
a.a.a.c.a: Cannot create destination folder
   at a.a.a.a.a.b(SourceFile:50471)
   at b4a.flm.archiverplus.ArchiverPlusZip.UnZip(SourceFile:27469)
   at b4a.example.main._activity_resume(main.java:424)
   at java.lang.reflect.Method.invoke(Native Method)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
   at b4a.example.main.afterFirstLayout(main.java:110)
   at b4a.example.main.access$000(main.java:17)
   at b4a.example.main$WaitForLayout.run(main.java:82)
   at android.os.Handler.handleCallback(Handler.java:754)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:163)
   at android.app.ActivityThread.main(ActivityThread.java:6238)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
a.a.a.c.a: Cannot create destination folder
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
main_activity_resume (java line: 424)
a.a.a.c.a: Cannot create destination folder
   at a.a.a.a.a.b(SourceFile:50471)
   at b4a.flm.archiverplus.ArchiverPlusZip.UnZip(SourceFile:27469)
   at b4a.example.main._activity_resume(main.java:424)
   at java.lang.reflect.Method.invoke(Native Method)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
   at b4a.example.main$ResumeMessage.run(main.java:310)
   at android.os.Handler.handleCallback(Handler.java:754)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:163)
   at android.app.ActivityThread.main(ActivityThread.java:6238)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
a.a.a.c.a: Cannot create destination folder
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_activity_resume (java line: 424)
a.a.a.c.a: Cannot create destination folder
   at a.a.a.a.a.b(SourceFile:50471)
   at b4a.flm.archiverplus.ArchiverPlusZip.UnZip(SourceFile:27469)
   at b4a.example.main._activity_resume(main.java:424)
   at java.lang.reflect.Method.invoke(Native Method)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
   at b4a.example.main.afterFirstLayout(main.java:110)
   at b4a.example.main.access$000(main.java:17)
   at b4a.example.main$WaitForLayout.run(main.java:82)
   at android.os.Handler.handleCallback(Handler.java:754)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:163)
   at android.app.ActivityThread.main(ActivityThread.java:6238)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
a.a.a.c.a: Cannot create destination folder

I have attached the zip file of the project.

I understand it is a very old library code and so throwing errors in new b4a 8.8.
I tried but could not fix it. Any solution is appreciated.

Further is there another zip library to open/extract a password protected zip file ?

Regards,

Anand
 

Attachments

  • arc_zip_text.zip
    314.2 KB · Views: 240

AnandGupta

Expert
Licensed User
Longtime User
Hi Don,

Thanks for quick reply.

The attached project (1 post) is the example from probundle. The error is in the example project itself. I am just trying to build and run it to study it. But it is giving error (1 post) both in emulator (24) and redmi 4 mobile.

If you can find time to run the example, please guide if any changes I have to do to run the example itself.

Regards,

Anand
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Thanks a lot, Don.

Your kind guidance helped me and I was successful in achieving my goal.

Attached is a working app, in B4A 8.8, to extract a password protected zip file using Informatix's fantastic library.
It may help members in similar situation.

Regards,

Anand
 

Attachments

  • test_arc.zip
    72.9 KB · Views: 277
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…