Thursday, April 30, 2009

J2ME Packages

J2ME Configurations

JSR Specification

Acronym

Description

JSR 30

CLDC 1.0

Connected, Limited Device Configuration

JSR 139

CLDC 1.1

Connected, Limited Device Configuration 1.1

JSR 36

CDC

Connected Device Configuration

JSR 218

CDC 1.1

Connected Device Configuration 1.1


J2ME Profiles

JSR Specification

Acronym

Description

JSR 37

MIDP 1.0

Mobile Information Device Profile

JSR 118

MIDP 2.0

Mobile Information Device Profile 2.0

JSR 75

PDAP

PDA Profile

JSR 46

FP

Foundation Profile

JSR 219

FP 1.1

Foundation Profile 1.1

JSR 129

PBP

Personal Basis Profile

JSR 217

PBP 1.1

Personal Basis Profile 1.1

JSR 62

PP

Personal Profile

JSR 215

PP 1.1

Personal Profile 1.1

JSR 195

IMP

Information Module Profile

JSR 228

IMP-NG

Information Module Profile - Next Generation

J2ME Optional Packages

JSR Specification

Acronym

Description

JSR 75

PIM

PDA Optional Packages for the J2ME Platform(It supports File Connection & PIM-Personal Information Management.)

JSR 82

BTAPI

Java APIs for Bluetooth(It supports Bluetooth & Obex)

JSR 120

WMA

Wireless Messaging API(It supports Text & Binary message)

JSR 205

WMA 2.0

Wireless Messaging API 2.0(It also supports Multimedia message)

JSR 135

MMAPI

Mobile Media API(It supports Audio, Video, Volume control)

JSR 164

JAIN SIMPLE Presence

JSR 165

JAIN SIMPLE Instant Messaging

JSR 172

J2ME Web Services

JSR 177

SATSA

Security and Trust Services API for J2ME

JSR 179

Location API for J2ME

JSR 180

SIP

SIP API for J2ME

JSR 184

3D

Mobile 3D Graphics API for J2ME

JSR 186

JAIN Presence

JSR 187

JAIN Instant Messaging

JSR 190

Event Tracking API for J2ME

JSR 209

Advanced Graphics and User Interface Optional Package for J2ME Platform

JSR 211

CHAPI

Content Handling API

JSR 213

Micro WSCI Framework for J2ME

JSR 214

Micro BPSS for J2ME Devices

JSR 226

Scalable 2D Vector Graphics API

JSR 229

Payment API

JSR 230

Data Sync API

JSR 232

Mobile Operational Management

JSR 234

AMMS

Advanced Multimedia Supplements

JSR 238

Mobile Internationalization API

JSR 239

Java Bindings for OpenGL ES

JSR 246

Device Management API

JSR 253

MTA

Mobile Telephony API

RGB and ARGB in J2ME

RGB - It is a color combination value of Red Green Blue

Syntax: 0xRRGGBB

Example: -

0xFF0000 (or) 255, 0, 0 (Red color)

0x00FF00 (or) 0, 255, 0 (Green color)

0x0000FF (or) 0, 0, 255 (Blue color)

Red - the red component of the color being set in range 0-255

Green - the green component of the color being set in range 0-255

Blue - the blue component of the color being set in range 0-255


ARGB - It is a color combination value of Red Green Blue with Alpha channel

Syntax: 0xAARRGGBB

Example: -

0xFFFF0000 - Red color with white color background

0x00FF0000 - Red color with transparent background

Alpha – it specifies the opacity (transparency) of the pixel

[0x00 – Fully transparent and 0xFF – white background]

Red - the red component of the color being set in range 0-255

Green - the green component of the color being set in range 0-255

Blue - the blue component of the color being set in range 0-255


Convert RGB to ARGB

public int convert_RGB_to_ARGB(int rgb) {

int r = (rgb >> 16) & 0xFF;

int g = (rgb >> 8) & 0xFF;

int b = (rgb >> 0) & 0xFF;

return 0xff000000 | (r <<>

}

Convert ARGB to RGB

public int convert_ARGB_to_RGB(int argb) {

int a = (argb >> 24) & 0xFF;

int r = (argb >> 16) & 0xFF;

int g = (argb >> 8) & 0xFF;

int b = (argb >> 0) & 0xFF;

return (r <<>

}