How to unzip files in blackberry - blackberry

I'm developing an app that manages a file zip with directories and files. I must know how to unzip these files in order to create in local the same structure as in the zip file.
Thanks in advance :)
Sergio

There are no native APIs on BlackBerry that support ZIP archives. You may have to Google around for third party packages or libraries to do this for you.

Related

How to download files from URL in Flutter and save them in iOS shared Folder?

Im pretty new to Flutter and I need a solution for the following steps:
Download a zip from an url
Extract the zip
Save the files to a shared folder in the application (iOS)
Remove the downloaded file from downloads
Thanks in advance
There is a a package that will manage downloads for you called flutter_downloader: https://pub.dev/packages/flutter_downloader
There is another package that allows you to compress and decompress files called archive: https://pub.dev/packages/archive

'Export to zip file' in Android Studio leads to 1.2gb + archive size

First of all, I am a complete beginner. I am always using 'export to zip file' to save my flutter code (I am not familiarized with Github right now ;-) ). The overall filesize of the zip is now around 1.2 gigabyte - Android folder: 60mb, iOS folder: 1.1gb.
It is a simple chat app without much graphics etc.
Is it normal? Don't want that the final app size is that large. Any idea how to save my code without that much overload?
Best,
Alex
Yes, that's normal - you have a whole bunch of intermediate build artifacts under your source folder.
The purpose of those .gitignore files that you find in your source tree is to tell git which files are the temporary build files or other configuration files specific to your machine. Git uses then to decide which files should be saved for posterity in source control, and which ones it should ignore.
If you are not going to use git, use the gitignore files to see which folders you can manually exclude from your zip file. (The build folder will probably be the main culprit.)
I highly suggest you use git. You can use dropbox or google drive folders for your project, this way they can auto sync your files. Try to compress your project folder from your operating system's file manager and compare the sizes. I don't think 1.1gb ios folder is normal.
Usually this must not happen (until u have used large media files).
One reason of file size increase is,
"apk / aab" files in "app\release" folder are not deleted while project is build,
like they are deleted in "app\build\outputs\apk\debug" folder.
You can delete previous signed apk from "app\release",
(if you have published them).
As these "apk / aab" are safely stored on google developer account.
Also don't forget to export your ".zip"
out of the project folder other wise it be like "zip in zip and zip in zip and so on ..."

Can I extract a library .a into a iOS project from .ipa?

I have an app installed, I have the .ipa and I have this question: is possible extract a static library file added to this application?
This application contains a static library in format .a, images and the files. I know how to extract the images from the .ipa and I know that is possible get the functions with reverse engineering, but I don't know if is possible extract the library added, because I only see binary files and images then extract .ipa, but I don't see the .a files.
No. The app binary is all of your code and static libraries all combined (linked) into a single binary. There is no way to extract any specific library from the resulting binary.

BlackBerry - final step of build process

What is the right way to get the final .jad & .cod files ready for distribution?
Currently I use a very poor, manual approach:
Package project & sign
Open explorer, navigate to the deliverables folder
Rename .cod files to .zip & extract them
Manually add the correct .cod files to the correct .jad file
This is wrong, but it works. What is the right way to do this? thx
Consider JadTool from BlackBerry Ant Tools

import existing source code as referenced library in eclipse

I have some source codes from a friend that I would like to use as referenced library in my BlackBerry project. I'm not sure about how to package the source codes into a .jar file. I tried exporting the source to a JAR file and import it as external JAR in my project, it's giving me missing stack map error. I tried to preverify the .jar file generated from the source using the provided preverification tool from BlackBerry JDE, it didn't give me any output folder.
In fact, I'm not sure if the way I export the source is correct. Can anyone provide step-by-step instructions on how to package existing source code into a valid JAR file that can be imported into my project as a referenced library?
Again, I'm using eclipse.
I fought with this issue for months...
I have two solutions for you:
A-If you plan on having this library in more than one Application:
I posted my solution at the bottom of my original question: Blackberry Apps - Importing a code-signed jar into an application project
The basic solution was to build the library as a cldc project (plus some other magic), not as a library project. I actually had to open a case with RIM support to figure this out, it was a hot mess... Our case was complicated in that more than one application would have a copy of our "Library" and our library had to be signed. Which caused weird issues when two ALX files (from two different apps) both had the same signed library file.
The nice thing about this solution is that adding the library to the Application doesn't force you to have multiple COD files.
B - If your Jar is only going to be in one Application:
Then you should follow these instructions: http://supportforums.blackberry.com/t5/Java-Development/Eclipse-1-1-can-I-add-external-3-d-party-JAR-library/m-p/486787#M98033

Resources