Adding multiple addresses to the Blackberry address book from any web page
As described previously Berry411 provides the ability for any web page to add addresses to the Blackberry address book. This post describes how to add arbitrarily many addresses and navigate to the web page of your choice after the address book update is complete. Berry411 defines a simple XML based scripting language that is interpreted when linked to by the browser. The key operations are illustrated in the example below. You’ll want to define a similar document on your site, substituting the values appropriate for your application. Then direct the user’s browser to “http://berry411.com/berry/handle_script?url=YOUR_URL”, where YOUR_URL is the URL-encoded URL to the XML document you created.
<?xml version=”1.0″ encoding=”UTF-8″?>
<actions>
<add_contact firstname=”foobar” lastname=”barbar”>
<address type=”home” street=”31 Example Street” city=”Bogusville” state=”NY”\
zip=”01239″/>
<phone type=”home” value=”4255551212″/>
</add_contact>
<add_contact firstname=”foobar2″ lastname=”barbar2″>
<address type=”work” street=”12 Sample Street” city=”Bogusville” state=”WA” \
zip=”01239″/>
<phone type=”home” value=”2065551212″/>
</add_contact>
<navigate href=”http://mobile.answers.com”/>
</actions>