Android Question Import project from zip source

LucyC

New Member
Hi everyone!
I have to work on an app project with B4A, the developer (he works on B4A too) exported the project as zip, then sent me it. When I click on File > Open Source I can only open .b4a files. How can I open a project from its exported zip file?
Thank you very much
 

LucyC

New Member
Thank you for your help Erel! The problem is that when unzipped, I don't know how to open these files in B4A. Unzipping, I obtain a folder named app-source, inside this folder there is only one folder named Objects, and inside this there are several folders and files. How can I load these files on B4A? Thank you very much!
 
Upvote 0

johndb

Active Member
Licensed User
Longtime User
I am not clear on what Objects folder you are referring to. There is an Objects folder within a B4A project which contains the application's installation files such as classes, dex and apk but these cannot be opened in the B4A development system. Check the folder. Does it only contain the installation files? If so, then the project was not packaged using B4A's "Export to Zip" utility. Ask your developer friend to resend the ZIP file created by using B4A's "Export to Zip" utility.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
When I click on File > Open Source I can only open .b4a files.
In the IDE you can open only xxx.b4a files.
If the project was ziped from inside the B4A IDE then just load the xxx.b4a file all the other files needed by the project will be loaded automatically if they were declared in the project.
You don't need to care about the Objects folder.
 
Upvote 0

LucyC

New Member
Thank you all, guys! Klaus, unfortunately i can't do that The problem is the developer was my husband and we divorced one year ago, so I was trying to solve without asking him But it seems i have to call him, thank you a lot for trying to help me guys!
 
Upvote 0

William Hunter

Active Member
Licensed User
Longtime User
I had a similar problem when exporting a ZIP file for posting, using the Export as ZIP feature of B4A. In addition to the xxx.b4a files and a xxx.bas file, there are three folders in the project. These are Files, Objects and addres. Although the folder addres appeared in the prep window, it was not include in the ZIP file. I then had to insert this folder into the ZIP file manually, prior to posting. There absolutely is a problem with the Export feature, and this likely what LucyC experienced.

Regards
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Although the folder addres appeared in the prep window, it was not include in the ZIP file.
This folder is not expected to be there. Due of this it will not be included automatically.

The same is true for any folders which are inside the project folder and which are referenced from the code using #additionalres directive.
Those folders are not included. This is why library authors upload a additional zip for the needed resources.
Or they put them into the exported zip manually.
 
Upvote 0

William Hunter

Active Member
Licensed User
Longtime User
What is the content of the zip file?
You should have one xxx.b4a file perhaps severel xxx.bas files and two folders: Files and Objects.
If there is xxx.b4a file in this folder, you need to ask for a new complete zip file.

Hello Klaus - I have attached an image of the contents of the project folder, and a ZIP of the address folder. address folder is a component of StdActionBarHelper. Everything ZIPPED fine except for address folder. DonManfred has said this is normal behavior, so it is something I will have to keep in mind for the future.

Regards
 

Attachments

  • addres.zip
    9.2 KB · Views: 193
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
address folder is a component of StdActionBarHelper.
not really. The address folder is "just a resource folder" which can be referenced by #additionalres
You are using it inside the StandardActionBarHelper to reference the needed drawables.
 
Upvote 0

William Hunter

Active Member
Licensed User
Longtime User
not really. The address folder is "just a resource folder" which can be referenced by #additionalres
You are using it inside the StandardActionBarHelper to reference the needed drawables.
I am using #AdditionalRes: ../addres in this project. Should I expect that including this reference would cause the folder address to be included in the exported ZIP? I'm just trying to understand what I should expect when using Export As Zip.

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