Hi all,
I'm trying to use the AddShortcut Method in this way:
String displayName = nameBuffer;
String iconPath = App::GetInstance()->GetAppSharedPath() + L"res/screen-density-xhigh/mainmenu.png";
String uriData = L"myapp://mydata/myitem";
ShortcutManager::GetInstance()->AddShortcut(App::GetInstance()->GetAppId(), displayName, iconPath , uriData);
It works, and i've the shortcur on my home menu. If i Click on the shortcut, i got
E/MENU_SCREEN( 635): item.c: item_launch(858) > cannot run service. ret [-2]
And i'm ok to this result, because i've to implement the virtual void Tizen::App::IAppControlProviderEventListener::OnAppControlRequestReceived. Can someone provide me an implementation sample? I've to invoke the Start() method on AppControl* pAc = AppManager::FindAppControlN(L"tizen.internet", L"http://tizen.org/appcontrol/operation/view"); passing as first parameter in the pAc->Start function the uriData. Thank you in advance.