c++ - How to open browser from headless app in blackberry -


i'm trying use notification, when user click ok should open browser. code i'm using:

 bb::system::invokerequest request;   request.settarget("sys.browser");   request.setaction("bb.action.open");   request.seturl(qurl("http://www.blackberry.com"));  notificationdialog* notification = new notificationdialog();  notification->settitle(" notification"); notification->setbody("click open continue ...");  notification->appendbutton(new bb::system::systemuibutton("open"), request); notification->appendbutton(new bb::system::systemuibutton("dismiss")); notification->setparent(this); notification->show(); 

the code doesn't work, though. doing wrong , how done properly?

i found answer.

replace line >> request.seturl(qurl("http://www.blackberry.com")); line >> request.seturi("http://www.blackberry.com"));

also don't forget add libs += -lbbsystem "yourproject".pro file.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -