Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer
Accepted Solution

BlackBerry App Directory Structure

Team,

 

Needed help on the app directory structure

 

I (New to Java development) have implemented a directory structure as below owing to resource and memory usage

 

Sample App

 |_ src

        |_DB (Database files)

        |_components (Library)

        |_Screen (All Screen Ui  and Business logic)

|_res

       |_img (images files)

 

But many of my code reviewers suggesting a different directory structure like below

 

Sample App

|_src

       |_DB

       |_components

       |_Module name 1

                     |_helper

     |_Controller

      |_Module name 2

                     |_helper

                     |_controller

|_res

       |_img

 

What i am thinking is second approach will consume lot space and a good change that app size will increase

guess app size is limited to 13MB 

 

refere - http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-smart...
ication/ta-p/502534

 

please suggest on which directory structure i should go

 

Let me know views and thoughts

 

Regards

 

 

 

 

        

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BlackBerry App Directory Structure

a different package or folder structure should not influence the size of the app in any recognizable way.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: BlackBerry App Directory Structure

Thanks for the reply

 

Is my first structure ok or should i consider changing the structure

 

Can u please point me to any resource with the required details for the app directory structure

 

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BlackBerry App Directory Structure

i would consider database files resources.
otherwise it looks good, but consider to use meaningful package names
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: BlackBerry App Directory Structure

Actually its database object, i have kept the database file in resource folder only

 

Thanks for the clarrification