Smartphone Development
  Home arrow Smartphone Development arrow Page 3 - Data Types and Data Retrieval with BlackBerry
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
SMARTPHONE DEVELOPMENT

Data Types and Data Retrieval with BlackBerry
By: Joe eitel
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2009-07-14


    Table of Contents:
  • Data Types and Data Retrieval with BlackBerry
  • Interacting with BlackBerry’s PIM Data
  • Retrieving PIM Data

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Data Types and Data Retrieval with BlackBerry - Retrieving PIM Data
    ( Page 3 of 3 )

    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
     

       

    SMARTPHONE DEVELOPMENT ARTICLES

    - Getting Started with Rich Media
    - How to Incorporate Location into Your BlackB...
    - Building Business Apps with the BlackBerry B...
    - The BlackBerry Java Development Environment ...
    - Advanced Java Programming for BlackBerry Sma...
    - Learning Java Application Development
    - Programming Intuitively with the BlackBerry ...
    - Simulating a BlackBerry Device
    - Data Types and Data Retrieval with BlackBerry
    - Debugging Your BlackBerry Applications
    - What You Need to Know to Get Started as a Bl...
    - Comparing RIM and JAVA ME APIs
    - Advanced BlackBerry Browser Development
    - Introducing the BlackBerry Push API
    - Developing the BlackBerry Browser




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek