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

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.


Reply
Developer
Posts: 43
Registered: ‎08-26-2010
My Device: Not Specified

Android Application - redeployed loses application data

Hey all,

 

I have just started porting/ r&d my application for the BB10.  My application  creates some files upon the "first time" launch like a db etc which is stored in the data folder on the device.  

 

I have noticed that if i re-deploy the application via eclipse it ingores those files and tries to re-create them like its a new application. 

 

Has anyone experienced this?

 

Many Thanks

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

Re: Android Application - redeployed loses application data

[ Edited ]

I have read some different posts that people are also experiencing this problem. If I use a simulator, I almost always use an Android simulator, so I am no real expert on this. But I would find it really weird that there is no such option to disable this.

Maybe have a look at the settings of your simulator in Eclipse. In Android there is something like "Wipe User Data" that can be enabled or disabled. Maybe this is enabled by default on the BlackBerry simulator.

For some testing purposes it would make sense to enable this, but I guess that most people don't want to load/create stuff everytime you test the app.



A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
Highlighted
Developer
Posts: 43
Registered: ‎08-26-2010
My Device: Not Specified

Re: Android Application - redeployed loses application data

Hi thanx for the quick reply,

 

I probably should have mention this is actually occuring on the BB10 device. So im not sure there would be such a setting.  

 

But thanx for the suggestion though i will look into it.

 

Cheers

 

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

Re: Android Application - redeployed loses application data

If I want test Android applications on my Android phone, I also have the option to "Swipe User Data" before deploying. I actually have exactly the same options. So I guess that you should have that option to on your device.

Have a look at the 'targets' in Eclipse, and see if the device you are using is among them (Right click on your project, Run as > Run configurations..). Normally you should be able to edit it them there. At least that is the case with my Android phone :-)


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