java-me

In J2ME and ANDROID which one is more useful, useable and popular as mobile programming language or framework?

I am very interested in mobile application development. But I don't know which language or framework is more popular, useful and useable. I know JAVA well. If you have any idea and/or experience, please help me to take my decision. ...

Blackberry call method after viewing call log history?

I want to stop a thread process, just after viewing the call history item, for that i need to initialize a method, after viewing call history. If anyone know about this please help me. Thank you! ...

Has any language been implemented in Java?

Do you know of a runtime written in Java/J2ME, that is capable of reading and executing a script/binary file? ...

How to declare a function during program execution?

This is something like Reflection where you can call a method simply by its name, and not a precompiled pointer to it. Like in JavaScript you can: var fun = function(){ alert("Hello World!"); } fun(); Is something like that possible in Java/J2ME? How? ...

Are Hecl scripts as powerful as native J2ME midlets?

Looking over Hecl, the scripting language with a J2ME runtime, I wonder about its capabilities: Assuming my base Midlet has methods and variables that I've written Can the Hecl interpreter run within my Midlet, and side-by-side with my classes? Can the Hecl script call any of my methods within the Midlet? Can the Hecl script utilize a...

Where does a Java ME JAR install to?

When you install a Java ME program on a phone using a .jar file, where does it install to? At which path can the Java files be found? Or does it install to a location hidden from the filesystem? ...

J2ME VS Android VS iPhone VS Symbian VS Windows CE

I have very little idea about mobile platform, though I am interested to program for mobile platform. Would you please compare between J2ME VS Android VS iPhone VS Symbian VS Windows CE. I would like to know which one is better, and if there is any VM technology to test the programs. Which one should I choose and why? Is there any IDE, d...

Encrypt and decrypt file in J2ME

Hi guys. I'm having problem decrypting an encrypted file in J2ME using bouncy castle. What I'm trying to do is select a file to encrypt,write the encrypted file and try decrypt it back to its orginal form (write to another file for verification purpose). I have this error when reading the encrypted file. Stack Trace : s: pad block cor...

Coding for cellphones

I have a old LG MG280 cellphone that I'd like to code some simple things for. It has Java support, but I know that it is not simply making a Java ME application. It has to follow some specific specs otherwise the app will not run. Does anyone know what those specs are? ...

Blackberry App, display images from Web

I'm using the Blackberry JDE (9000 simulator), and am wondering if I can display an image from the web. Currently, I'm seeing tutorials that use Bitmap.getBitmapResource to display images that are local to the blackberry application, but looking at the API, I'm not seeing any support for giving a web URL. Are there other Blackberry ima...

GZIPInputStream implementation for J2ME

Are there any GZIPInputStream implementation for J2ME available. I would prefer an Apache Style License ...

BlackBerry - draw image on the screen

How to draw png images with specific size and position on the screen? ...

How do programmatically turn off GPS on a Blackberry

Hi there. Does anyone know how to programmatically turn off the Blackberry internal GPS receiver? ...

j2me networking

I am producing a basic j2me application that collects gps information and then sends it out over a wireless network. It seems like I need a thread to read GPS and a thread to send the data over the network. This seems like a producer/consumer pattern with some sort of queuing mechanism on teh consumer side that will allow the data to...

Is HTTP 1.1 pipelining discouraged in native mobile apps ?

For several years, I've been facing problems with HTTP 1.1 pipelining & continued to ask the server to send the HTTP Header: Connection: close I want to revisit this decision. Does your native mobile apps use HTTP pipelining ? Some problems with HTTP pipelining I've faced: Server not releasing TCP connections My client is receiving ...

How do I view contents of blackberry cod file?

I there any way that I can see the contents of a Blackberry COD file to check which classes are in there? ...

Can Java omit sending some headers in HTTP requests?

I'm using the HttpConnection class in Java to send HTTP requests. How do I omit unwanted HTTP headers? like: User-Agent Accept Accept-Language Accept-Encoding Accept-Charset Keep-Alive Connection Referer If-Modified-Since ...

Can I compress HTTP Requests using GZIP?

I am communicating to a Tomcat Server using a Java ME application on my mobile device. I was wondering if I could compress my requests/responses using Gzip to reduce the number of bytes sent over the network. ...

Rounding a double to 5 decimal places

How do I round a double to 5 decimal places, without using DecimalFormat? ...

transfer file from mobile phone to another via bluetooth

Hi guys.. I've been searching high and low on this problem. Still can't find the solution. Basically, I want to transfer an encrypted file via OBEX Push Service (bluetooth) from client (j2me) to server (j2me). In emulator, it works fine. Client able to successfully do a bluetooth discovery lookup on the server. But, when I put the appli...