Posted by: iBNuX | May 21, 2010

Using Log at blackberry


import net.rim.device.api.system.EventLogger;


* your package
* select then right click then choose Convert string to long
* will be like this : 0x36c3d2a18dcfa4e3L this is your Log ID
private static long ID = 0x36c3d2a18dcfa4e3L;
private static String even="";

register your app to use LOG

EventLogger.register(ID,"Name of your APP", EventLogger.VIEWER_STRING);

then log what you need:

even = "Use WIFI";EventLogger.logEvent( ID, even.getBytes() );

or use new line:

even = "Use BIS-B";
EventLogger.logEvent( ID, even.getBytes() );//add to log

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: