maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Launch browser from my App (https://talk.maemo.org/showthread.php?t=44086)

remyag 2010-02-11 05:54

Launch browser from my App
 
Hi ,

Can I launch browser from my application?
If so could you please provide link or documentation regarding browser launching?

Thanks
Remya

danielwilms 2010-02-11 07:33

Re: Launch browser from my App
 
Hi,

there is a dbus API for that, which you find in /usr/include/tablet-browser-interface.h in the SDK. The call for open a url is:

Code:

dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"http://www.google.com"
Daniel

krk969 2010-02-11 14:09

Re: Launch browser from my App
 
if you are using QT then you could also use

QDesktopServices for opening most common desktop applications including the browser.

suihkulokki 2010-03-09 14:23

Re: Launch browser from my App
 
dbus-send --session -type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"http://www.google.com"

would be slightly more cleaner


All times are GMT. The time now is 17:19.

vBulletin® Version 3.8.8