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
Developer
Posts: 1,636
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

is it possible to duplicate an app?

I have two apps.  app A and app B

can i duplicate app B from app A and call it app C? if so how?

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: is it possible to duplicate an app?

Yes, assuming you have the source code.  You can create a new project and add the existing source to it.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,636
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: is it possible to duplicate an app?

i guess i didnt explain it properly.

 

I have two compiled applications and both are installed on the BB.

I want app A and make a copy of app B and then name it App C.

 

also if i have App B embedded in App A can i use this API to create App B?

 

createNewModule(int totalLength, byte[] data, int length) 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: is it possible to duplicate an app?

I've not tried this, nor do I have any real experience, but I doubt this would work.

 

If you in effect copied the cod, you would be creating duplicate classes with the same package name.  I think that when you attempted to write the new cod out, the loader would find this and barf.  I think to do this properly, in a system like the BlackBerry which doesn't really support a 'class loader', you would need to rename all the classes.

 

In a recent thread, someone had created duplicate classes deliberately, in source, and was getting a verification error because of the duplicated persistable classes. 

 

But like I said, not an area of expertise.

Highlighted
Developer
Posts: 1,636
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: is it possible to duplicate an app?

thanks Peter.