java-me

BlackBerry - KeyListener with global scope

Hello all, I am new to BlackBerry App development. I want to be able to listen for keypress events whenever the BlackBerry (8900 in my case) is on and on all screens is this possible? If so, it would be great for someone to direct me in the right direction. I am already having a look at Interface KeyListener. import net.rim.device.ap...

How KVM (Kilo Virtual Machine) different from JVM(Java Virtual Machine) ?

I have basic idea on Kilo Virtual Machine on Mobiles , I have clear idea of how JVM works class loaders , Executable Engine,Method Area etc . Technically how KVM differs from JVM ? Does KVM increases the execution time as compared to JVM ? Any Performance Oriented difference ? Memory management Thanks ! ...

How to check network connection type in Blackberry?

Hi All, In Blackberry application I want to check what type of network connection is being used on particular phone, whether it is BES/MDS,BIS-B or Direct Tcp. Is there any way to find out this? Many applications like Jive,Opera and many more are doing this kind of check. Please help. ...

Does a LDAP library exist for JME?

Hi all, I would like to know if a LDAP library exists for JME. Does anyone know ? Best regards, Quentin ...

Detect a smart card

I'm writing a Java ME app and I'd like to determine if a smart card is connected. The JCRMI interface ( http://java.sun.com/javame/reference/apis/jsr177/ ) defines this connection, but near as I can tell you need to have a specific application address to create the connection. The spec says the Connection.open url must be "jcrmi:"[slot...

Query related to Connection type BIS-B Socket in Blackberry application

Hi all, I am trying to establish BIS Socket connection. I am able to establish BIS Http connection from my service provider. I have downloaded one chat application that checks network types supported by my device/service plan which has following list: 1)BIS-Http : OK 2)BIS-SOCKET :OK 3)BES-HTTP : NA 4)BES-SOCKET : NA 5)TCP-HTTP : BAD D...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone mentions the usage for j2me. The application builds without any errors/warning. But, the moment the line where MicroHessianOutput is instantia...

J2Me installation via OTA

I'm trying to install my application midlet via OTA. I used apache tomcat 6 as the ota server, and create a small project in the webapps folder which contains application.jad, application.jar and welcome.html which has a link point to the .jad file. I tested the installation using sun emulator it installs just fine. But when I tried to...

Help in encrypting data between J2ME and .NET Web services

Hi guys, I have a requirement to encrypt data sent and received between J2ME and .NET Web services. I have tried using Bouncy castle but the encryption on J2ME and .NET side work independently (J2ME <-> J2ME // .NET <-> .NET) but are not working between each other (J2ME <-> .NET). If anyone has done this before. Can you share the fun...

Which library is used to access the Gmail emails using J2ME?

hi guys i want to develop gtalk application for the mobile please tell me the name of library that is used to access the gmail account thr J2ME ...

Data in J2ME RecordStore does not persist across sessions

I'm building a mobile app with J2ME, and I've found that the data I write into a RecordStore can be accessed while the program is still running but it is lost after quitting and restarting it. No exception is thrown, the data is simply lost. UPDATE: Thanks everyone for your suggestions. I'm using NetBeans on Windows 7. I'm not sure if i...

Is there a way to develop new JSR's for Java ME enabled devices?

Hi there, I have a MIDP2.0 mobile device with no support for a specific JSR (it's JSR 180 SIP API for J2ME). Sun's website says there's a reference implementation but it seems it's already removed. The question is, can I develop JSR 180 and deploy it to the device, so applications can use it? Or should it be in the device firmware (ob...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving. Is the situation improving significantly? Are problematic implementations being patched? Are problematic implementations dying out as ...

Is it possible to run pdf file from J2ME

There is a pdf file in a web server. Accessible from, let's say: http://domain-name/files/test.pdf Is there a way to call a function to open this pdf file from the default pdf browser (if exists) of the mobile device? Thanks in advance. Note: I am not asking for parsing and displaying a pdf file from a j2me application. Note2: As fa...

Using MIDP Canvas keyPressed / keyCode on BlackBerry to get Canvas.FIRE for trackball click

I have a MIDP application that I would like to run on BlackBerry devices. It's quite generic, the one gotcha is that when I override the Canvas keyPressed(int keyCode) method, I'm not capturing the trackpad click events. Normally you would use getGameAction(keyCode) == FIRE to capture the center of the navigation pad button on MIDP devi...

Receiving SMS sent from the WTK emulator in a custom application

Hello all, I'm using Sun WTK to run a midlet that needs to send and optionally receive SMS. WMA console can be used to send and receive messages to the midlet but I'd like to do the same thing using my own application. I have done some sniffing, and noticed that the messages are sent by UDP from the WMA console to the emulator. Does ...

Can you port any kind of a Database into a J2ME application ?? or Is ther any jar file available to perform database operations in any type of phone ??

I was looking for some kind of a library that could perform database operations on my phone alongwith storing the database itself into my phone using J2ME. ( other than the RecordStore class ) ...

Nullpointer Exception in J2MEmicroDb createTable function

My code is J2MESDLIB.generateDB(true); J2MEColumn c1 = new J2MEColumn("desc", true, J2MEColumn.ColumnType.VARCHAR, 20); J2MEColumn c2=new J2MEColumn("date", false, J2MEColumn.ColumnType.VARCHAR, 20); J2MEColumn c3=new J2MEColumn("type", false, J2MEColumn.ColumnType.VARCHAR, 20); J2MEColumn c4=ne...

J2ME Soft Key Wrapper

Hi, Reading some articles, told me that soft keys varies between devices. Some says -6 or -21 for left soft key and -7 or -22 for right soft key. Given this situation, is there any good wrapper or function of best practice to handle it properly? Of not possible for ALL devices, what is the best way to support most devices? with minor ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); 3. Object o = v.getElementAt(0); I am getting an ArrayIndexOutOfBoundsException at line 3. The debugger shows that the Vector has 1...