java-me

Loading image in Java J2ME

Hi all, I have a problem with loading image with java 2ME. I have a image file "picture.png" in location drive "C:". After that I wrote my like this to show image from this location. Ex: import javax.microedition.midlet.; import javax.microedition.lcdui.; import java.io.*; public class ImageMidlet extends MIDlet implements CommandLis...

How to fast-forward and rewind audio in j2me / blackberry (midp) application ?

Hi, I want to fast-forward and rewind recorded audio in a j2me and Blackberry application. Is there any sample code available? How do I do it? Please help. Thanks in advance. ...

problem in accessing Inner class while crating BitmapField & adding it in HorizontalFieldManager

Hi all, I m creating a inner class in a method. After that I am accessing some statements like, public class Test extends MainScreen { HorizontalFieldManager hfm; Bitmap bitmap[] = new Bitmap[100]; BitmapField[] bitmapField = new BitmapField[100]; int countBitmap = 0; Test() { VerticalFieldManager vfm_Main = new Ver...

What is the right way to change an Integer in a Vector in Java (j2me)

As a follow up to my question about j2me dynamic arrays, I'm now trying to figure out a way to change the values of the Integers in my Vector. Say I have a Vector v, and Array arr, and ints x, y and i; In c++ I could do: v[arr[x][y]] += i; In j2me the best way I found so far to do the same is: v.setElementAt(new Integer(((Integer)...

Good .NET college project topic?

I am an M.Sc. Computer Science 2nd year student. I need to do a project for my college work. I have working experince with Java, databases, J2ME etc. I have satisfacotry knowledge of .NET but I have not done any projects with it. Please suggest a good topic with .NET or J2ME that will be of post-graduation level. ...

Guide to Learn J2ME

Hi all, I am starting study java2me. But I have some source study about it like ebook, source sample code, and ... Could anybody give some link website or source ebook study about it. Thanks, Sopolin ...

Barcode reading using picture taken using mobile phone camera

How do we do programmatic reading of a barcode that is captured using a mobile phone camera? For example, how do that using iPhone or Android or Java ME? Do we need separate hardware to read bar code or can we do image manipulation? ...

Alternative ways to open a file for writing on J2ME?

I've inherited a bit of J2ME code where a single class has the following two methods in it: public DataOutputStream getOutputStream(String filePath) throws IOException { return Connector.openDataOutputStream(filePath); } public DataOutputStream createOutputStream(String filePath) throws IOException { FileConnection fc = (FileC...

how can Midlet calls static variable?

hi, i have a midlet which has got a static variable. i need to keep the record of all the instances created in this variable. but it does not work like static variable. my code segments look like this. i am running this midlet on sun wireless toolkit 2.5.5. i can create many objects of same midlet from that toolkit but still my counter ...

Create Form in J2ME

Hi All, I want to design one form that contains TextField and ListView in J2ME. But I don't know how to create this form. It is looked like Dictionary Form. Could anybody help me to do that?. Thanks, Ung Sopolin ...

Permission j2me application, removing the prompt

I have a signed application for Nokia 2660. This application makes HTTP connections and when the application is opened the device prompts a message asking for user permission. The user can previously opening the application make a configuration so that this prompt never appear. This works fine. When a new version of the application i...

mobile to mobile TCP socket connection

Reading among the list of possibilities of the Java ME platform, its possible for a J2ME app running on a mobile to initiate a TCP Socket or HTTP connection with a server. On similar lines, Is it possible to form a TCP socket connection between two mobile phones? ...

How does the Google Maps for Mobile "My Location" feature work?

I've installed the Google Maps Java 2 ME app on my Nokia N73 which supports the Location API (JSR 179), but does not have an in-built GPS sensor. The "My Location" features works correctly, and is able to pinpoint my position within the city. When I tried to access the CellID, LAC and other related data, I got nulls. So how is Maps abl...

Need Http Connection Also WAP Connection

I have code that successfully displays html import java.io.DataInputStream; import java.io.IOException; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.micr...

Good websites to help Java ME development?

Since J2ME apps have so many possible devices they can run on, there's lots to consider during each step of development. Are there websites that help you with the design process? Statistics of API and MIDP version availability on phones of all manufacturers? Browsing of APIs and Classes available by category? Articles and reviews of A...

Create Dictionary For Mobile Using J2ME

Hi all, I want to create the dictionary for mobile. But I have any idea about it. Could anybody guide to learn about these? Thanks, Sopolin ...

Synchronize data from JavaME mobile locally

Hi, I would like to write a litte data-entry app for mobile phones using JavaME (MIDP/CLDC). How do I best synchronize the data with a local application on my PC (resp. just transfer the data to the PC)? Is there any standard way to connect to the PC if the mobile is plugged in via an USB cable? I know that I could just connect to some...

How to set timeout for Java Wireless Toolkit generated web service calls?

I have used the Java Wireless Toolkit Stub Generator to create a bunch of web service call stubs for a mobile app (BlackBerry J2ME app). The problem I'm having is that there doesn't appear to be any way to set a timeout on the calls. This causes the app to sit and wait for at least a minute waiting to timeout if the web service that is c...

j2me: Error opening stream - "java.io.IOException: -7334"

I am making HTTP connections to server to get some data. It works on most devices, but I'm getting this error on Sony Ericsson P1i. I have found error description: KErrHttpInvalidHeaderInRequest -7334 Request contained a response header or a entity header but no body Body should exists, I mean, data is not zero-length, and other d...

Streaming Video with Blackberry Simulator

So, I wrote a quick little app for the iphone that takes in an http URL, and plays the .mp4 video located at that URL (it does more than that, of course, but that's the meat of it). Naturally, I wanted to have it on more than just a single mobile platform, so I decided to target Blackberry next. However, I'm running into a lot of proble...