ImageCropForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER pArgs(%x)", pArgs);
-
if (pArgs != null)
{
__sourceFilePath = *(static_cast<String*>(pArgs->GetAt(0)));
int count = 1;
int index = 0;
String destFilePath;
- destFilePath.Append(App::GetInstance()->GetAppDataPath());
+ destFilePath.Append(App::GetInstance()->GetAppSharedPath());
+ destFilePath.Append(PATH_DATA_DIRECTORY);
destFilePath.Append(__pPresentationModel->GetFileName(__sourceFilePath));
destFilePath.Reverse();
destFilePath.IndexOf(FILE_EXT_SEPARATOR, 0, index);
{
count++;
destFilePath.Clear();
- destFilePath.Append(App::GetInstance()->GetAppDataPath());
+ destFilePath.Append(App::GetInstance()->GetAppSharedPath());
+ destFilePath.Append(PATH_DATA_DIRECTORY);
destFilePath.Append(__pPresentationModel->GetFileName(__sourceFilePath));
destFilePath.Insert(FILE_NAME_SEPARATOR, destFilePath.GetLength() - index - 1);
destFilePath.Insert(count, destFilePath.GetLength() - index - 1);
if (__statusValue == SET_AT_TYPE_HOME_SCREEN_WALLPAPER)
{
- String destPath = App::GetInstance()->GetAppDataPath() + TEMP_FILE_PATH_HOME_SCREEN_WALLPAPER;
+ String destPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_HOME_SCREEN_WALLPAPER;
r = pCropBuffer->EncodeToFile(destPath, IMG_FORMAT_JPG, true, 100);
if (r == E_SUCCESS)
{
}
else if (__statusValue == SET_AT_TYPE_LOCK_SCREEN_WALLPAPER)
{
- String destPath = App::GetInstance()->GetAppDataPath() + TEMP_FILE_PATH_LOCK_SCREEN_WALLPAPER;
+ String destPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_LOCK_SCREEN_WALLPAPER;
r = pCropBuffer->EncodeToFile(destPath, IMG_FORMAT_JPG, true, 100);
if (r == E_SUCCESS)
{
}
else if (__statusValue == SET_AT_TYPE_HOME_AND_LOCK_SCREEN_WALLPAPER)
{
- String destPath = App::GetInstance()->GetAppDataPath() + TEMP_FILE_PATH_LOCK_SCREEN_WALLPAPER;
- String destPathHome = App::GetInstance()->GetAppDataPath() + TEMP_FILE_PATH_HOME_SCREEN_WALLPAPER;
+ String destPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_LOCK_SCREEN_WALLPAPER;
+ String destPathHome = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_HOME_SCREEN_WALLPAPER;
r = pCropBuffer->EncodeToFile(destPath, IMG_FORMAT_JPG, true, 100);
r = pCropBuffer->EncodeToFile(destPathHome, IMG_FORMAT_JPG, true, 100);
if (r == E_SUCCESS)
if (__sourceFilePath.IsEmpty() == false)
{
- destFilePath = App::GetInstance()->GetAppRootPath() + TEMP_FILE_PATH_CONTACT_IMAGE;
+ destFilePath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_CONTACT_IMAGE;
r = pCropBuffer->EncodeToFile(destFilePath, IMG_FORMAT_JPG, true, 100);
Contact* pContact = null;
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
ImageViewerForm::DownloadFile(void)
{
AppLogDebug("ENTER");
- String DestPath = App::GetInstance()->GetAppRootPath() + TEMP_FILE_PATH_WEB_FILE;
+ String DestPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_WEB_FILE;
if (File::IsFileExist(DestPath) == false)
{
AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
Image* pImage = new (std::nothrow) Image();
pImage->Construct();
- String destPath = App::GetInstance()->GetAppRootPath() + TEMP_FILE_PATH_WEB_FILE;
+ String destPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_WEB_FILE;
r = pImage->EncodeToFile(*pBitmap, IMG_FORMAT_JPG, destPath, true);
if (r == E_SUCCESS)