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

Android™ Development

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.

New Contributor
Posts: 6
Registered: ‎02-03-2013
My Device: BlackBerry 10
My Carrier: Rogers

Upgrading Ported Android Apps

I've noticed that anytime I try compile a new version of my ported Android app from Eclipse to the BlackBerry Alpha 10 Dev simulator that I have (I don't have a physical device at this time), it seems to completely uninstall the prior version and re-installs the app. This causes the application to lose all of it's data!


Does this mean that if I were to release an upgrade of the app in BlackBerry World that the users will lose all of their data, or is this simply a weakness of working with Eclipse/BB10 Dev Alpha??




New Member
Posts: 1
Registered: ‎02-05-2013
My Device: BB Playbook
My Carrier: Vodafone

Re: Upgrading Ported Android Apps

This also happens with the Android simulator and is completely normal because development mode erases all, based on this example, users should not lose data, because only the package is replaced

Regular Contributor
Posts: 84
Registered: ‎01-31-2013
My Device: Simulator !!!
My Carrier: 8608800458

Re: Upgrading Ported Android Apps

No, it doesn't happen on Android Simulator/emulator for non-blackberry development. If you run from Eclipse it will update not overwrite the currently installed version. So the question is valid and I have noticed the same.

However, I'm fairly sure that this is due to how the Eclipse/Simulator environment is setup. It sure is a pain in the **bleep** though.
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook
My Carrier: T-Mobile

Re: Upgrading Ported Android Apps

I was afraid of that as well, but once you release a new version your users won't loose their data. This only happens when you are using eclipse and in development mode. It kind of sucks since you have to create your test data all the time or a scripit to do it everytime you deploy a new version.

Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: Upgrading Ported Android Apps

Maybe you should look into the settings when building your application.

If you are in Eclipse, use the Package Explorer view to show your applications. Right click your application and go to "Run As" > "Run Configurations...". There you should select the configuration you are using now to run. Normally if you only have one this will be selected by default. If you then go to the "Target" tab you have several options that could delete your data.

For example check if "Wipe User Data" is unchecked. Just browse through the options and see if they can be the source of your problem.

A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter