언어 설정

Menu
Sites
Language
E_ILLEGAL_ACCESS with GetAppSharedPath and File Write

Tizen::Base::String icn=App::GetInstance()->GetAppSharedPath();icn.Append(L"iconbigred.png");

//.....

r=file.Construct(icn, L"w");
AppLog("Construct %S %s",icn.GetPointer(), GetErrorMessage(r));

Here is  E_ILLEGAL_ACCESS

But I need exactly  GetAppSharedPath - because NotificationRequest.SetIconFilePath requires 

The iconPath should start with the directory path returned by Tizen::App::App::GetAppSharedPath()

Looks like deadlock.

I can't write to shared path but can show icons only from shared path and need to put this icons from my resources to this path... 

 

답변 바로가기

Responses

5 댓글

Create folder (for example: data) under shared folder and write to it ..you can't write directly under shared ..you can use /shared/res as well (AFAIR)

Vitaly

Not working the same

04-06 14:24:09.769 : INFO / ***** ( 5557 : 5557 ) : void *****::UpdateStatus(int)(410) > Directory /opt/usr/apps/*****/shared/shared/res/ E_ILLEGAL_ACCESS

And another

04-06 14:24:43.819 : INFO / *** ( 6093 : 6093 ) : void ***::UpdateStatus(int)(438) > Construct /opt/usr/apps/********/shared/res/iconbigyel.png E_ILLEGAL_ACCESS

 

I have an app uses /shared/data/ folder and I write to it temp images ..create the folder using the IDE

I create temp images inside this folder

App::GetInstance()->GetAppSharedPath() + "data/image01.jpg";

Mark as answer
Vitaly

The main answer to my question is here:

https://developer.tizen.org/dev-guide/2.2.0/org.tizen.native.appprogramming/html/basics_tizen_programming/io_overview.htm

I'm coming from Android and didn't know about some other catalogs (only res).

So if someone will search - You don't need to take file from resources and put it to shared.

Just put file to shared by OS and it will be accessable from program code