Languages

Menu
Sites
Language
Insert SD Card to Emulator

Hi ,

I am using Tizen 2.2 and I would like to know how to insert / attach SD card to my emulator. I tries using the Event Injector tool , but whenever I use it, it is showing as Device is disconnected. Can anyone tell me how to insert a SD Card storage to the Emulator ??

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

10 Replies
wil smith
If SDK is installed on default location, it works fine. SD card simulation doesn't work if SDK installed on location other than the default one.
Leo Joseph
No no. It is installed in default location. I didn't changed it. The problem is , I am not able to write the files properly in /opt/storage/sdcard/ path. Using GetExternalStoragePath I am getting the path, but whenever I write a File inside the path, I am getting error as ILLEGAL_ACCESS , though I am in root mode. Help me
wil smith
You can't write directly to path returned by GetExternalStoragePath(), you have write access only to the predefined directories like Images, Sounds, Videos, Others available under this path. P.S. File, Directory and path names are case sensitive in Tizen
Leo Joseph
Sorry to bother you smith . GetExternalStoragePath() returns /opt/storage/sdcard/ path. Isn't that memory card path ? I am able to push the files using Connection explorer. So, is there any path is there for SDCard which will have read/write permissions ?
Leo Joseph
I am struggling to use SD card feature in emulator. In Settings-> Storage , it is displaying as insert SD card . I have seen a option in event injector as well which has SDCard menu. When I Clicked attach button, the emulator closes and IDE and stops responding. Is there any documentation available that how to use SD Card in Emulator?
Leo Joseph
Hi Smith, I have few doubts regarding this SD Card. Please help me out I am using Tizen 2.2 1. Do we need to mount SD Card ? 2. If it is not needed to mount SD Card , then why I am not able to write or delete the files inside /opt/storage/sdcard/ path. I tried execution the following code , I am getting [SECURE_LOG] [E_ILLEGAL_ACCESS] error File file; r = file.Construct(Tizen::System::Environment::GetExternalStoragePath() + "test.txt", "w+"); if (IsFailed(r)) { AppLog("Failed to Construct"); } I have switched to root mode using sdb -e root on . I have re-installed Tizen twice, still I am getting error.
Zoltan Puski
Have you read Smith's answer at all? Here is again: "You CANNOT WRITE DIRECTLY to path returned by GetExternalStoragePath(), you have write access only to the predefined directories like Images, Sounds, Videos, Others available under this path."
Leo Joseph
Hi Zoltan, Yes I have read. Does an External SD Card will have predefined directories like Images,Sounds,Videos.etc ??? Or you were saying about the storing in internal memory of the device ?
Zoltan Puski
I have not tried, but according to what he said, you must copy to these folders even on an external memory. If they do not exists, you should create them. See this: static Tizen::Base::String Tizen::System::Environment::GetPredefinedPath ( PredefinedDirectoryType dirType ) [static] Remarks: The directory path for some directory types such as IMAGES, SOUNDS, VIDEOS, CAMERA, DOWNLOADS, and OTHERS may not yet exist, so you must make sure that it exists before using it.
Leo Joseph
Thank you Zoltan, I have created Predefined folders in sdcard and pushed the files inside that. It is working fine in Tizen 2.1 ,but not working in Tizen 2.2 (even in root mode). Will try again by re-installing Tizen.