java-me

Java MVC - Doesn't feel like I get it

As a beginner in programming it always bugs me when I run into a walls. Currently one of the wall are co-depending objects. As you can see in my question history I'm currently working on a blackberry application, in which I implemented something I call the MVC Pattern, but it isn't exactly what I think it's meant to be. You see, a no...

install J2ME on Nokia 1200

I want to ask wether it's possible to develop a J2ME application for Nokia 1200 phone and then install the application as well as J2ME/Java runtime because it seems that Nokia 1200 doesn't include J2ME/Java runtime : (http://www.mobile88.com/cellphone/Nokia/Nokia-1200/specification.asp) . ...

Java Vector : Secure reference to element

Coming from a C# Background I never used any pointers. I'm creating a vector of contacts objects. What is the best way to create a separate vector which references to elements in the big vector? ...

tunnel failed in blackberry bold. why?

Hi, I created a j2me program and ported it to the blackberry bold. The program does some http queries. Every now and then these fail with the exception: 'tunnel failed' My APN settings are correct (since sometimes it does work). I connect with ';deviceside=true' appended to the url I notice that when the browser has just been active...

Set authentication request prop in j2me works?

Hi, I have followed the answer to http://stackoverflow.com/questions/950885/http-authentication-in-j2me by setting the request property for HttpConnection object with setRequestProperty("Authorization", "Basic "+ encodedUserAndPass) but it didn't work. When make request to Http protocol -> 401 Unauthorized When make request to H...

How to detect inactivity/idle time since last keypressed on j2me !

I have an application with a lot of screen (followed by MVC pattern), and I want to be able to receive in a fashion way the information that last key was pressed x seconds ago (120 sec let's say). Is there standard way to do this or i have to start a timer and every time when I pressed a key I have to override a variable and in the timer...

Java Getters: Always execute specific method

Is there a way to define a method, which is called everytime I call a get? I have an Object Contact and don't want to set updateLastUsed(); in about 30 Getters for my Members. ...

j2me no of threads

I am developing a j2me map based application. Screen is divided into a grid of images and I have to request these images from a server. This can be threaded. What is the maximum no of threads that I can spawn in a j2me midlet? Is there a way to arrive at this no? ...

Build J2Me App programatically from ASP Website

Hello Friends, I am having this peculiar problem in hand. I have newly developed J2Me App Midlet, now I want to give this App to the user as a download from my website. I want to build the application programmatically as user clicks the link to download it, It is so because there is a set variable data, I want to hard code inside J2Me A...

Developing for the Nokia 3120?

I want to develop an application for Nokia 3120 ( http://www.forum.nokia.com/devices/3120 ). from the previous link, It is said that the Developer Platform is "Series 40 Developer Platform 1.0" but from the "Series 40 Platform SDKs" page, no SDK Series 40 for Platform 1.0 is available, I can just see Series 40, Developer Platform 2.0 an...

J2ME: Prefetch error -5. MediaException

I get a MediaException (Prefetch error: -5) when executing the following code on a Nokia N73. It runs fine in the emulator and I have tried the same thing before on the same phone successfully. The only difference now is that I am using NetBeans to build and deploy rather than Eclipse. inputPlayer = Manager.createPlayer("capture://audio...

J2me - Running J2ME in JCreator IDE.

How to run J2ME MIDlet programs in JCreator IDE? ...

Blackberry MDS Simulator not launching

Hi, I have a problem with MDS-CS simulator coming with JDE 4.5.0 installation. I have to establish network connectivity and I need to run MDS for that. Whenever I launch MDS simulator, a window appears and exits immediately. How do I resolve this problem? I searched on internet for this issue and most answers were related to path envi...

REST client for Amazon s3 in J2ME

Does anyone know of a client implementation for the S3 REST API that will work on J2ME? All the implementations I can find is only targeted for J2SE. I do not want to use the SOAP API, because I think REST will be faster (partly because you don't need to BASE64 encode the payload). Edit: Part of the problem seems to be that J2ME does n...

Programmatically call default media player in Blackberry?

Like I said, the application has to call the default Blackberry media player.Does anybody know or maybe point in a direction to implement it Enviroment : Eclipse+BB plugin 4.5 ...

How to make a J2ME application run in Background ?

Hi , i have a written a J2ME application which uses Bluetooth and search a file within the peer mobile and download it . I would like to make my application run in background , when ever i get a call , or message and later resume after few seconds , Has anybody worked on this please share your experience . Is there any way to run a Midle...

kxml2 Parsing Simple XML

I'm trying to parse a simple xml file in my j2me application. But the parsing fails. Anyone an idea, what I'm doing wrong? Thanks, rAyt XML File <companies> <company CompanyId="6"> <CompanyName>Test Company 1</CompanyName> <SapNumber>0</SapNumber> <RootCompanyId>1</RootCompanyId> ...

Blackberry bluetooth pairing to undiscoverable device

Is there anything in the blackberry api or in j2me which would allow communications and/or pairing to a bluetooth device using the MAC address? (Assuming the device is not-discoverable) ...

Optimizing for a smaller .cod (.jar) file

The RIM compiler performs extra optimization and compression on the resulting ".jar" while building the final .cod file, but there are things that can be done by the developer to significantly reduce the final .cod file size. One such thing would be to run PNGCrush, OptiPNG, or a similar tool to reduce the size of the included .png fil...

Dial using second sim card (j2me)

For dual sim phones, such as samsung D780, is there a way to dial a number using second sim card. What I currently use is platformRequest("tel:+1201xxxxxx"); I've tried playing with ;tsp= but with no success. I must be missing something. ...