5 Things CIOs need to know before mobile-enabling

Leave a comment


Webinar at Aspire Systems

Webinar at Aspire Systems

Join us for a Webinar                                                                         
Theme: 5 things CIOs need to know before mobile-enabling
Date: Thursday, June 2, 2011
Time: 11 AM PST / 2 PM EST

“More than 4 billion people around the world now use cell phones, and for 450 million of those people, the Web is a fully mobile experience,” according to the McKinsey Global Institute. This explosive growth of mobile is having a significant impact on B2C and B2B businesses.

Mobile-enablement, however, is more than just tailoring your website’s content to fit a smaller screen. There are several options and challenges involved in going the mobile route. Executives overseeing mobile initiatives need to be aware of the considerations – in order to get the maximum RoI from their mobile strategy.

Come listen to two experienced practitioners discuss key elements that will be crucial in your mobile strategy, on June 2nd, 2011 at 2 PM EST.

Some areas that will be covered include:

Native mobile apps Vs. Mobile web

Design simplicity: where less is more

Mobile as a new channel for growth

And much more…

Speaker Profiles

William Walsh
Senior Manager – Mobile strategy
Discover Financial Services

William is a pioneer and thought-leader in the wireless industry. He has created and driven development of mobile multimedia applications (now used on 100+ million devices worldwide) including entry into the emerging $13 billion mobile advertising market and $35 billion location based services market.

In his previous role as Mobile Product Manager at Walgreens, he successfully launched Walgreens iPhone, Android, and Blackberry applications. He defined the marketing message for Walgreen’s iPhone application and propelled it to No.3 in the iTunes Lifestyle category – the app also won in 2 categories of the Webby awards.

Vinod K
Mobile Practice Manager
Aspire Systems

Vinod is an IT practitioner for the last 13 years, with over 10 years working in the mobile space. Vinod understands what it takes to go mobile – the challenges, pros and cons of different approaches. He has consulted several Fortune 500 companies and helped them define their mobile roadmap.

Vinod has hands-on experience working on various mobile technologies, right from programming for Palm OS close to 10 years ago, to leading a 20+ member team for a Fortune 500 company in the retail space recently. Vinod led the team working on their iPhone and Android apps (the iphone was subsequently one of the top 5 apps in the iTunes Lifestyle category).

Advertisements

BlackBerry Simulator Configuration Options

Leave a comment


Recently I wanted to configure couple of things in BlackBerry simulator.  To configure the BlackBerry simulator settings typically you need to look for a file called rimpublic.property. Typically this file resides under the eclipse plug-in directory (if you use eclipse IDE for BlackBerry development) but if you have BlackBerry JDE installed it might be located under that. Anyway just search for this file and once found, do the following.

1) Enable internet connection via proxy

Under [HTTP HANDLER] section, do the following changes

[HTTP HANDLER]

.

.

.

application.handler.http.proxyEnabled = true

application.handler.http.proxyHost=your_proxy_ip_address or your_proxy_name

application.handler.http.proxyPort=your_proxy_port_number

2) Change the MDS listening port

Under [WebServer] section, do the following changes, changing sslport is not needed, anyway for consistency sake, change it

[WebServer]

.

.

.

WebServer.listen.port=new_port_number_that_is_not_already_in_use

WebServer.listen.sslport= new_port_number_that_is_not_already_in_use

 

3.Edit run.bat file:

The run.bat file is in this path – Research In Motion/Blackberry Email and MDS services Simulator 4.1.2/MDS/..

Edit this file and replace !BMDS_CLASSPATH!;!BMDS_CLASSPATH2! with %BMDS_CLASSPATH%;%BMDS_CLASSPATH2%

Also, you need to run that batch file as an administrator.


BlackBerry – DataStorage – Part2

Leave a comment


In this article, We are going to see how to store the data in flash memory of the device.

Here, We used the Persistent Store API for store the data in flash memory. The data persists even if you remove the battery from the blackberry device. This is a secure API.

The BlackBerry Persistent Store APIs do not provide a relational database model. You must create an effective object model and manage the relationships between objects, as necessary, using indices and hash tables.It is looks like a key-value model.

Create a Storage – Persistent data Store

1) Import the following class
net.rim.device.api.system.PersistentObject
net.rim.device.api.system.PersistentStore

2) Each persistent object has a unique key for processing, So we need to create a key.
Create a string ( ex: String pObject = “HelloWorldPersistentObject” )
Right click the string and choose the option “convert string to long” (you will get the value like 0Xa1a34567823abc2W )

3) To make the persistent store ,create a one static object for persistentObject

            static PersistentObject persistentObject;

4) To invoke the object using,

           static { persistentObject = PersistentStore.getPersistentObject ( 0Xa1a34567823abc2W); }

Store the Data
To store the new value into the persistent store , invoke the commit().

String[] persondetails = {username , personaldetails, officialdetails }
synchronized(persistentObject) { 
	 persistentObject.setContents(persondetails);
	 persistentObject.commit();
}

Retrieve the Data

synchronized(persistentObject){
	String[] currentPersonInfo = (String [])persistentObject.getContents();
}

Remove the Data

	persistentStore.destroyPersistentObject( 0Xa1a34567823abc2W);

It supports saving to the smartphone’s flash memory, but not to the SD card, it is a good choice for storing data that does not require large amounts of space, such as application settings and user preferences. No size limits for the persistent store and also each object size is 64 KB.

BlackBerry – Data Storage

Leave a comment


Hi,

In BlackBerry device, we can store the data in following ways.

1) FileSystems (JAR 75)

2) Persistent Storage (persistent storage API)

3) MIDP Storage (MIDP RMS API,JSR37,JSR 118)

4) Sqlite Memory

File Systems:-

The JSR75 FileConnection API gives read and write capability to blackBerry filesystem. It supports both internal flash memory and any memory card.It also enables the read data from the other application and mainly it can retrieve the picture,video and other media data which are kept in the device already. But this very traditional method to store/retrieve the data in the memory.This FileConnection API are located in javax.microedition.io.file package.This is not a secure API.

FileConnection interface is designed to create / delete/ access files or directories from the device memory. The memory might be filesystems or removable media. To get the fileconnection using the Connector class from javax.microedition.io.Connector package. This connector class is uses to open the network connection in specified mode (Read / Write / Both).

If you want to open the file in READ_WRITE mode then use this syntax,

FileConnection fconn =null;

fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);

(fName – Path for the file. Ex: file://SDCard/increment.txt )

Read Operation

public static String readTextFile(String fName) {
                    String result = null;
                    FileConnection fconn = null;
                    DataInputStream is = null;
                    try {
                       fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);
                                 is = fconn.openDataInputStream();
                                 byte[] data = IOUtilities.streamToBytes(is);
                                 result = new String(data);
                         } catch (IOException e) {
                                System.out.println(e.getMessage());
                         } finally {
                                 try {
                                         if (null != is)
                                               is.close();
                                         if (null != fconn)
                                                fconn.close();
                                       } catch (IOException e) {
                                          System.out.println(e.getMessage());
                                       }
                        }
                 return result;
}

Write Operation:

public static boolean writeTextFile(String fName, String text) {
          DataOutputStream os = null;
          FileConnection fconn = null;
          boolean processCompleted=false;
          try {
              fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);
                   if (!fconn.exists())
                           fconn.create();
                   os = fconn.openDataOutputStream();
                   os.flush();
                   os.write(text.getBytes());
                  processCompleted=true;
               } catch (IOException e) {
               } catch(IllegalModeException e){
              } finally {
                        try {
                               if (null != os)
                                   os.close();
                              if (null != fconn)
                                   fconn.close();
                           } catch (IOException e) {
                           } catch (Exception e){
                      }
                     }
           return processCompleted;
     }

But this is very traditional method for storing the data in the device memory. Currently Blackberry supports some new storage ways like persistent , sqlite.

I will catch you with persistent storage article.

Top BlackBerry Sites & Forums

Leave a comment


Here are some of the top BlackBerry sites/forums where one can find the latest information about BlackBerry.

1) http://na.blackberry.com/eng/developers/

2) http://www.blackberryforums.com/

3) http://crackberry.com/

BlackBerry Application Environment Setup

Leave a comment


Following link mentions about the tools for BlackBerry java application development environment

http://na.blackberry.com/eng/developers/javaappdev/devtools.jsp

Using Perst Library in BlackBerry(J2ME based) devices

Leave a comment


In order to use Perst library in blackberry application (CLDC MIDP platform), perst-rms.jar library has to be referenced and not perst.jar.

Before referring an external jar file to a blackberry application, a procedure called “preverify” needs to be performed, which will be produce a .jar file by the same name on which you perform the “preverify” procedure. This is explained in the following link

http://getablogger.blogspot.com/2009/09/how-to-include-external-jar-file-in.html

Older Entries