java-me

Blackberry Audio Recording Sample Code

This is probably lazy of me, but as I've mentioned before, the RIM website is a mangled mess. Does anyone know of a good repository to get sample code for the BlackBerry? Specifically, samples that will help me learn the mechanics of recording audio, possibly even sampling it and doing some on the fly signal processing on it? Basicall...

How to create a database connectivity sqlserver2000 through J2ME.

I want some helps from the professional people who know a lot in the J2Me. I work on a mobile application that the user will be stored and retreve the data from the database using sqlserver 2000. i am new in this area ( J2ME ) and I don’t know a lot, so I want help to finish this application, please... one more, j2me is not directly s...

Loading Images in J2ME?

I'm not so new to the concepts present on J2ME, but I'm sort of lazy in ways I shouldn't: Lately my app has been loading images into memory as they were candy... Sprite example = new Sprite(Image.createImage("/images/example.png"), w, h); and I'm not really sure it's the best way, but it worked fine in my Motorola Z6, until last night...

setNodeValue not working

Hi, I have created XML file for a Blackberry application ,and I have used root.getFirstChild().setNodeValue("ABCDE"); to set the node value. An exception is thrown while adding node value. What can be done? PLease help. Thanks in advance. ...

Blackberry - change latitude and longitude on the device to test app

Hi I want to test my app on the device. Is it possible to hard code the latitude and longitude values somewhere in the device settings so the app reads those instead of the current location? I want to test my app for different locations other than my current location. Thanks. ...

What Happened to BufferedImage class in Java ME 6?

Hello good people! from my small knowlegde from java se i want to try a tutorial on Java ME. I have Netbeans 6.5.1(with mobility package) and have Java 6 update 13 installed on my windows xp sp2.I've arrived on a stage of the tutorials where they are using BufferedImage that seems not to be found either on java.io, java.nio.Buffer, javax...

What are the codes(like MEID) related to CDMA phones?

What are the codes related to CDMA phones? Like we have IMSI,IMEI,CellID in GSM,do we have any such codes that can be retrieved from a CDMA phone? And can anyone suggest how to retrieve them from a phone(programatically)? ...

How to debug a j2me application in netbeans with breakpoint?

I am unable to check the flow of execution of my j2me application using breakpoint. I am using Netbeans IDE.Googling it I came to know that after setting a breakpoint,I need to run the app and then when the AMS reaches the breakpoint,if I go on pressing F6,i'll get to know the flow of execution .But it doesnt seem to work for me. ...

What are the different zlib compression methods and how do I force the default in Java's Deflater?

I am using DeflaterOutputStream to compress data as a part of a proprietary archive file format. I'm then using jcraft zlib code to decompress that data on the other end. The other end is a J2ME application, hence my reliance on third party zip decompression code and not the standard Java libraries. My problem is that some files zip and...

Java Server not able to encrypt/decrypt data with Blackberry's AESkey

Hi, I am developing a BlackBerry application where the server is in Java. Whenever AES encrypted data is sent to server along with PKCS5 Formatting, The server gets bad padding exception while decrypting it. Please help. Badly stuck in this issue thanks. ...

Compiling J2ME from command prompt

hi, i'm trying to compile the J2ME java files from command line from 2 week ago ! at now i can compile project successfully and also create JAR and JAD files . the files that i compile work equivocal, this means if i use basic class the same as TextField or Form or others this work successfully but if I use RecordStores OR more important...

call and save contact in j2me

Hi all, I am doing a program using j2me and the last window in the program has a form contains name of the place, number and location. I want to know: 1) if there is any way to call for the number which appears in the window? 2) if there is any way to save the information ( name and number) in the contact? any tutorials or examples a...

Why is java.io.ObjectStreamException used in WTK stub generator for enums?

I am using a web service implemented in WCF which has enums defined in the interface. I am trying to call this from a Java BlackBerry client. I am using Eclipse to develop the Java application for BlackBerry. I am using the Sun Java Wireless Toolkit (WTK) 2.5.2 to generate stub code since the web service is rather large (already in us...

detect power interruption from J2ME app

I'm involved in yet another application . this time, it's about developing a J2ME application. the mobile the application will run on is going to be connected to an electrical socket . and whenever the mobile is unplugged (interruption of electrical energy supply in the battery), the application should detect it and do some custom acti...

Get battery status from J2ME

How can I get battery status through J2ME ? ...

How to remove header from XML document using org.w3c.dom classes?

Hi, I want to remove <?xml version="1.0"?> tag from the xml. I have used XMLWriter for string representation of class. It is generating the above tag by default. Now I want to remove it. Please help. Is there any standard way of doing it in org.w3c.dom for Blackberry? Thanks in advance. ...

J2ME development and native API

Is it possible to write a mobile application with J2ME and whenever we want to implement a functionality not offered by J2ME call native mobile API ? (kind of like what is done with .NET, whenever you need something not provided, you just call the Win32 API from the .NET platform). ...

JSR 256 battery events.

Help , How can I detect whenever the power cord is unplugged from electrical socket using JSR 256 ? ...

HTTP authentication in J2ME

Hi, I'm trying to create a J2ME app, which talks to webserver using HttpConnection connector. When I am talking to the WebServer, I have to authenticate using Basic HTTP auth, which normally goes like http://username:[email protected]/rest/api/method But in J2ME, when I construct a url of this form, it doesn't work. I also tried...

Symbian - find if device is connected to internet

Hi Is it possible using the Symbian Java library to find whether the device is connected to the internet or not? I don't want to wait for an exception to find out. Thanks. ...