Smartphone Development
  Home arrow Smartphone Development arrow Page 2 - 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 - Interacting with BlackBerry’s PIM Data
    ( Page 2 of 3 )

    As a developer, knowing how to interact with a BlackBerry’s PIM data is important because at its core, BlackBerry is all about managing personal information. Essentially, PIM data is primarily used by three already-existing applications on a BlackBerry smartphone: the calendar application, address book, and tasks application. It is with these apps that data is entered, stored, retrieved, and manipulated.

    As an example, let’s discuss the event data class in detail. This feature enables BlackBerry users to set start and end times for an event, as well as create a reminder or mark the event as recurring. This is all easy enough for the user, but how can you as a developer interact with this PIM data programmatically?

    It’s important to understand that when working with BlackBerry APIs for PIM data, there are two levels of classes you should take note of. The first is called javax.microedition.pim, which is a package containing generic PIM data. Also, the classes in this particular package are usually found on devices beyond the BlackBerry and represent the core PIMItems. The supported JSR-75 contains two optional packages for features found on PDAs and other J2ME mobile devices. The first allows you to access PIM data, and the other is used to access file systems.

    The second class to take note of is the net.rim.blackberry.api.pdap, which is a package containing BlackBerry-specific extensions to the javax.microedition.pim classes. Also, keep in mind that the PIMItem is a generic PIM data element, which contains a collection of data fields. PIMItems can usually be organized into a PIMList, which act as a collection of PIMItems. The location supported by a specific platform may change, because it is always determined by the PIMList where the PIMItem is stored.

    The data fields inside a PIMItem can come from a variety of different data types. Some of the most common are String, String Array, Date, boolean, integer, and last but not least, binary. Each of these PIMItem classes includes “getters” and “setters,” which are used to manipulate the data. Each and every field will include a descriptive label, zero or more data levels, data value attributes, and a specific data type. These field names are then even further categorized by integer values that will be determined by the contact, event, and to-do classes.



     
     
    >>> 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 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek