语言

Menu
Sites
Language
How to delete content?

Is it possible to delete image content from the device?

using AppControl OnAppControlCompleteResponseReceived

String *pImageSource = (String*) pResultList->GetValue(String(L"path"));

ImageContentInfo imageContentInfo;
 imageContentInfo.Construct(pImageSource);
// returns empty string =  imageContentInfo.GetContentName();
//returns zero = imageContentInfo.GetContentSize();

//returns correct path = imageContentInfo.GetContentPath()

ContentManager contentManager;
contentManager.Construct();

contentManager.DeleteContent(imageContentInfo.GetContentId) // FAILS - Invalid Content Id

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
Pushpa G
Hi, Refer to LocalContent sample app available in Tizen IDE(File>New>Project>Tizen>Tizen Native project>Sample>Local Content), this code is there and working