EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Solfs for android

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#22658
Posted: 11/30/2012 01:57:41
by swapna nyathani (Basic support level)
Joined: 11/29/2012
Posts: 8

Hi Sir,

I am trying to use SOLFS(application edition) for an android application(Android 4.2 and eclipse). I installed SOLFS (evaluation).
I need to create a storage which can store some files documents,audio and video.


Am able to create instance of SOLFSStorage Class and set the registration key.

but i am stuck in opening the storage like what exactly to pass in setFileName,
is this an encoded string value or folder path in local file system.


setFileName(String value);

or guide me if i am going wrong.


And also let me know if there is any link or reference in net to go through which can help me in this project, as there are no related links i can go through with this combination of work environ.

Thanks in advance.

Swapna.
#22673
Posted: 11/30/2012 05:00:52
by swapna nyathani (Basic support level)
Joined: 11/29/2012
Posts: 8

Hi,


This is my code
Code
SolFSStorage m_Storage = new SolFSStorage();
m_Storage.setRegistrationKey("myvalidkey");
int pagesize = 512;
StorageOpenMode mode = StorageOpenMode.CreateNew;
m_Storage.setFileName("myAndroidStorage");
m_Storage.SetPageSize(pagesize);
m_Storage.setLogo("myspace");
m_Storage.open(mode);


I got an exception for this code saying

Quote
"eldos.solfs.SolFSException: Read-only file system".


how can i clear this and move further in creating storage...

please help

Thanks in Advance,

Swapna
#22674
Posted: 11/30/2012 05:46:26
by Alexander Plas (EldoS Corp.)

Hello

You have to set fully qualified file name in the filesystem. I suppose the OS treats passed "myAndroidStorage" filename as filename somewhere where your application has no write rights.
#22689
Posted: 12/01/2012 06:40:28
by swapna nyathani (Basic support level)
Joined: 11/29/2012
Posts: 8

Hi Plas,

Thanks for your reply.
I think i have to pass a file from external Storage of Android Device.
I am working on it ..
thanks for your quick response.



Swapna.

Reply

Statistics

Topic viewed 2162 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!