Skip to main content
Inspiring
August 28, 2011
Question

copy SOL to SD card

  • August 28, 2011
  • 3 replies
  • 1758 views

I need to backup my Local SharedObject (SOL) file onto an SD card.

How do I find the SOL files current location on an Android tablet?

How do I copy that file onto the SD card?

Thanks,

Don

This topic has been closed for replies.

3 replies

Inspiring
August 31, 2011

sorry. forgot to mark it as answered.

Inspiring
August 31, 2011

Since no one seems to be able to answer the bigger question here, can someone help with a small piece of it?  I have the code for the rest.

How do you access the SharedObject file on an Android device?

This does not work

var original:File = File.applicationStorageDirectory.resolvePath("mySO.sol");

because the sol file isn't getting found at the root of the app storage.  It looks like it lives inside /#SharedObjects/??/mySO.sol .

I tried something like this ...

var original:File = File.applicationStorageDirectory.resolvePath("#SharedObjects/mGHG.swf/mySO.sol");

but that didn't work either.

I know the mySO.sol exists because the app is working correctly with the SO.

I just need to know how to add the correct location of the SO in the resolvePath.

Anyone?

Thanks,

Don

Inspiring
August 31, 2011

Sorry, I haven't had to move a shared object. But maybe you would have better luck using a regular File object -- you can use the FileStream class's writeObject() and readObject() methods to store and retrieve a serialized object, and you can place the file anywhere.

Inspiring
August 29, 2011

I guess what I'm asking is can the SOL be stored on SD card? What is the right answer for removable storage of SOL file?

My goal is to store my SOL data to SD card so that the SOL can be moved from one tablet to another in the event that the tablet is damaged.  The backup tablet device has the same app with same name and SOL file name.  So, I want to test if the SOL file can be moved to the backup tablet.

One option I was considering is installing the app on the SD card.

However, this page kinda killed that idea

http://developer.android.com/guide/appendix/install-location.html

says that user data,etc. is still stored in memory.

and it says that the app will only work on one device (encrypted so it only works on one device).

So, I'm back to asking how I can store the SOL file to the SD card, remove the SD card from one tablet, and then insert into another so it is available to the backup tablet to use the same SOL file.

This is important because the tablets are being used in the oil field and we must have redundant tablets and the abilty to move the offline data onto the backup tablet.  There is no internet connection available at all.

Thanks,

Don