Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
05-06-2013 05:24 AM - edited 05-06-2013 05:25 AM
I have Source code of one application, which is in the market. I need to add few features and want to release as new application, thats client requirement. It contains persistentstore and rms and sqlite.
Do I need change the package structure for the application? and what to change regarding PersistentStore and rms and sqlite so that it can not disturb/override the already existing the application contents.
Please help on this
Solved! Go to Solution.
05-06-2013 05:48 AM
Just to clarify the previous answer a little, you can have two different applications on the same device sharing class names (by class name I mean the fully qualified name including the package) if the classes are not persistent.
If you have persistent classes, then the names must be unique.
If you are sharing code, then any other identifiers, such as ids for PersistentStore and RuntimeStore, directory names for SD Card (and SQLite databases), BBM id, Application name, and ids for various services like social media and analytics, must also be different.
In my experience, the biggest issue when attempting to share code is the requirement to have unique persistent objects. One way to handle this, is to have the creation of the Persistent Object be done in the non shared application code, using a class that implements an Interface that defines a shared set of methods. So the shared code uses the Interface to access the persisted data, and so is, well, shared. But the actual object persisted is specific to the Application. Hope this is clear.
05-06-2013 05:50 AM
Ya name I am going to change, Does any other resouces associate with the Package structure, like images or Database, PersistentStore class name...
05-06-2013 05:54 AM
Sorry I don't understand that question. Can you give me an example?
Each application is effectively loaded independently. The issue with needing PersistentStore Object being unique comes about from the need for the BB to remove the classes associated with an application when that application is removed. So there has to be a one to one relationship between persisted classes and applications.
05-08-2013 08:44 AM - edited 05-08-2013 08:51 AM
Do we need to change RuntimeStore keys/Ids and GlobalEvents and SystemEvents Ids/keys ?
in my code there are few RuntimeStore, GloblaEvents and System Events GUIDs are hard coded and I dont know, from where he is taking these constants
05-09-2013 01:57 AM
No, not this
Actually the String can be converted to Long using JDE plugin right, For example if a String "com.sample.Sample.java" can be converted to '0x2ee0da71db0405e6L' to use as a GUID, now is there any way to get String from this long value
i.e from '0x2ee0da71db0405e6L' to "com.sample.Sample.java"