Home arrow Smartphone Development arrow Page 3 - Data Types and Data Retrieval with BlackBerry

Retrieving PIM Data - Smartphone Development

It seems as if everyone uses a BlackBerry these days. But not everyone organizes their information in quite the same way. If you're going to build the programs that help people stay organized with BlackBerry devices, you need to understand the kinds of data types that users acquire, organize, and use to get through the day.

TABLE OF CONTENTS:
  1. Data Types and Data Retrieval with BlackBerry
  2. Interacting with BlackBerry’s PIM Data
  3. Retrieving PIM Data
By: Joe eitel
Rating: starstarstarstarstar / 3
July 14, 2009

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

As we’ve already discussed, PIMItems are stored in a device’s PIMLists. Sometimes, on rare occasions, there may be multiple PIMLists on a device, but usually there’s nothing more than a single default list of PIM data. In order to access the lists of PIM data, you have to obtain a reference to the PIM database.

There are also different methods you can employ once you’ve accessed the database. The static method retrieves an example of the PIM database, which is actually necessary for any further operations. This particular class also includes methods for opening up PIMLists that are already in existence. Here, you can also serialize a PIMItem to an input (our output) stream.

There are also two openPIMList methods, with one opening the default PIMList and the other taking a String argument for a named PIMList. The listPIMLists method enables a developer to obtain a list of available PIMList names, and it returns a String array containing a PIMList name in each array element.

As we discussed earlier, it’s very important to note data types in the BlackBerry Java API documentation. Despite which openPIMList method is used, there are two arguments that are necessary: pimListType, which may be CONTACT_LIST, EVENT_LIST, or TODO_LIST; and mode, which may be READ_ONLY, WRITE_ONLY, or READ_WRITE. Once a developer has the PIMList open, the application can access the elements by employing an enumeration.

Sure, developing applications for BlackBerry may be your forte, but understanding the data types employed by BlackBerry is also essential to understanding how the smartphone device works.



 
 
>>> More Smartphone Development Articles          >>> More By Joe eitel
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SMARTPHONE DEVELOPMENT ARTICLES

- Is Facebook Working on a Branded Smartphone?
- Apple iOS 6 Packed With Features
- Finally, Ubuntu OS for Smartphones?
- App Developers Offer Thoughts on Windows Pho...
- App Promo Survey Displays Developer Struggles
- Apptopia Market Helps Developers Recoup Inve...
- Is Fragmentation a Plus for App Developers?
- Juniper Networks: Android App Malware Increa...
- Developer's Losing Interest in Android?
- Android Developers Pushed Towards Google Wal...
- Google Increases Android App Size Limit
- ATandT To Charge App Developers, Android Lac...
- Android Slipping in App War versus Apple
- Apple and Google Battle to Clean Up App Mark...
- iOS Development: Hello World! in Xcode Part 2

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: