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

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: Access SharedObject data in converted apps

I am still totally unable to read either AIR created shared objects or SQLite databases from Android apps.

 

However, I can create an SQLite database in AIR and then read it back in a BlackBerry Cascades application. Obviously this is going to require a ground up rewrite of the entire app, but at least it is a start...


Read my thoughts on BlackBerry Development at news.ebscer.com
New Developer
Posts: 1
Registered: ‎02-10-2015
My Device: z10
My Carrier: Developer

Re: Access SharedObject data in converted apps

I had the some problem but could find a solution. 

 

You can save de SharedObject.data as an object in a local .file file.  

 

Store ActionScript objects in files

 

import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;

 

The data is Encrypted, you only save on changes in 10.2

 

In the 10.3.1 first run, you load the .file, save the data to the local new sharedObject and then delete the .file from the device .