How to embed microb browser view/daemon in your app

How to embed microb browser view/daemon in your app

Jonathan Wilson
Karma: 82
2012-03-05 14:41 UTC
Thanks to a nice person at Nokia who published Fremantle sources for
tablet-browser-daemon and browser-neteal, we now have the 100% correct
browser-neteal-dev package required to embed the browser view in your app
just like Nokia did with microb, tutorial-home-applet and other things.

This is what you need to know in order to embed the microb browser view
widget (which in turn talks to the browser daemon just like microb does) in
your app:
1.Download
http://www.cncmods.net/files/browser-neteal-dev_0.7.10.1-2_armel.deb
http://www.cncmods.net/files/tablet-browser-view-test.c and
http://www.cncmods.net/files/tablet-browser-view-test.sh into scratchbox.
2.Install tablet-browser-view-dev from the SDK.
3.Install browser-neteal-dev from the above deb file.
4.Run tablet-browser-view-test.sh to make sure things compile and that you
have all the dependencies in place
5.Study tablet-browser-view-test.c to see how to embed tablet-browser-view
into your app.
6.Enjoy a nice simple way of embedding the Maemo browser widget/view/engine
into your app and talking to the Maemo browser daemon.

Why would you want to use this instead of other methods of adding a browser
in your app?
1.Its simple to use (compared to pulling in a full browser engine like
webkit or gecko and talking to it)
2.You get all the advantages of the Maemo browser daemon without the need
to talk to it over dbus and do other complex things.
3.It handles some of the tricky stuff like scrolling and zooming
automatically so you dont have to.

Basically its a nice way to use the existing Maemo browser view/microb
engine without the need to do lots of tricky stuff on your end.
  •  Reply