Languages

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

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

Responses

1 Replies
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