A del.icio.us plugin for Windows Mobile (or C++ is a pain)

screenshotIncreasingly, I’m doing more of my (non-work) web browsing on my PDA.

And as a big fan of using del.icio.us to store and share interesting sites that I come across, I’ve missed the tools you can get for desktop browsers (like Internet Explorer or Firefox) that let you throw your current page at your del.icio.us list.

If you’ve not used them before, the idea is to have a popup window that gets prefilled with the URL and name of the page you are looking at in your browser, lets you add a few tags, then submit it to del.icio.us when you hit ‘Save’.

So I thought I’d have a go at creating something similar for Pocket Internet Explorer – the browser you get with Windows Mobile.

To cut a long story short, I’ve put something together and it seems to work. If you have a Windows Mobile PDA and fancy giving it a try, feel free to give it a go.

To go into a little more detail… it was more of a pain than I expected. :-)

screenshotInternet Explorer really isn’t the most friendly beast to the plugin writer! Basically, I needed to write a DLL in C++ that hooked into one of the menu extensions in Pocket Internet Explorer.

This is not as trivial as I expected – it took hundreds and hundreds of lines of code just to get a new entry in the Internet Explorer’s menu that gets me access to the web browser object as an IWebBrowser2. And (perhaps especially so for someone who has been getting a little lazy with Java and C#! ;-) ), some of it is a little intricate and complex.

Still, once done I could use my access to the browser to launch my “post to del.icio.us” form and prefill it with the URL and page name of PIE’s current page. From there, the form uses the public del.icio.us API to send all the info off to my del.icio.us list.

I should say a few thanks… I was helped out in my hacking from a few places:

Update 19/07/2007: The zip file is now packaged as a CAB file which you can run on your PDA. This handles the registering of the DLL for you. (I really should have done it this way to start with… sorry!)

65 Responses to “A del.icio.us plugin for Windows Mobile (or C++ is a pain)”

  1. fernando says:

    dude. works on my motoQ m9. I did confirm the error when I try to add a bookmark that already has been tagged in my account. thanks for all the hard work you’ve done. I appreciate it. L8.

  2. [...] Del.icio.us plugin – Windows Mobile Del.icio.us plugin [...]

  3. [...] But to do this, I’m gonna need to write a DLL in C++ to extend the core PIM apps. I’ve done this before, but it’s fiddly and time-consuming and I’m not in the mood to fight with that [...]

  4. [...] your bookmarks and a del.icio.us plugin to save them.? Dale Lane has created a free del.icio.us plugin for Windows Mobile that allows you to post del.icio.us bookmarks directly from Pocket Internet [...]

  5. Dale, great plug in, works well on the XV6800, the Verizon version of the HTC Mogul with PPC-WM6.

    If there was but one improvement I could suggest, it would be putting it in what I will refer to as the “Right-Click” context menu…ya know, when you hold the stylus down for a second or two and that circle of dots appears. That would be an ideal location when Full Screen mode is implemented.

    Regardless, thanks for your contribution!

  6. Bruce Berryhill says:

    This works great on my Motorola Q9. Thanks! Too bad that del.icio.us itself is useless on this phone unless you use the HTML feed.

  7. [...] love this de-coupled, services-based approach. Compare it with the pain I went through to extend Pocket Internet Explorer on Windows Mobile last year. I wrote some small apps that added options to the mobile browser’s menu to turn [...]

  8. almadani says:

    .

    It is a grate job, I like this add-on to my ppc.

    Thanks Dale Lane

    .

  9. Lennie says:

    How do I actually go about writing a plug in for Pocket IE? Some example code would be nice :-)

  10. [...] Visit Mobilicio.us here, and download PosttoDelicious from here. [...]

  11. German says:

    Some good service, thanks I”ll use it for my PDA!

  12. [...] Jason Langridge has a post about a del.icio.us plugin for Windows Mobile.  The creator has more information here at his blog. [...]