O'Reilly logo

BlackBerry Java Application Development by Bill Foust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - adding e-mail addresses

  1. Add the final code segment under the appropriate comment in the run method of _AddTestAddressesAction.
    //TODO: Add Addresses String[] Address1 = new String[contacts.stringArraySize(BlackBerryContact.ADDR)]; String[] Address2 = new String[contacts.stringArraySize(BlackBerryContact.ADDR)]; Address1[BlackBerryContact.ADDR_STREET] = "123 Main St."; Address1[BlackBerryContact.ADDR_EXTRA] = "Apt. 4"; Address1[BlackBerryContact.ADDR_LOCALITY] = "AnyTown"; Address1[BlackBerryContact.ADDR_REGION] = "AnyState"; Address1[BlackBerryContact.ADDR_COUNTRY] = "USA"; Address1[BlackBerryContact.ADDR_POSTALCODE] = "12345"; newContact1.addStringArray(BlackBerryContact.ADDR, BlackBerryContact.ATTR_HOME,Address1); Address1[BlackBerryContact.ADDR_STREET] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required