E_ILLEGAL_ACCESS with GetAppSharedPath and File Write

E_ILLEGAL_ACCESS with GetAppSharedPath and File Write

BY 05 Apr 2014 Native Application Development

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… 

 

Written by