I am very new to Java Me (first time). I want my program to ask the user for an IP addres. So four numbers that are between 0 and 255. It doesn't need to be difficult, but as I said, I'm new to Java Me.
...
Hi,
I want to generate a random number of 14 positive digits only and i use the below function for it:
public void random()
{
Random number = new Random();
long l = number.nextLong();
number.setSeed(System.currentTimeMillis());
long num = Math.abs(number.nextInt())%999 + (l/100000); // problematic line
mTextBox.setString...
Hi,
how do I connect the midlets to work with 1 single master midlet?
if possible, there should only be 1 jar for the downloading into the mobile. The users should be able to select the non-master midlet as well, or better still not display them on the mobile.
thanks.
...
i have to invoke already built web services from my code and get the response in return.
how can i do it....
(i am working on eclipse for blackberry phone simulator,using j2me)
any help will be greatful........
...
I have a JAR file midlet JAR file, which returns an INT value according to some input data...
Problem is, i need to get that INT value by calling the jar file via some python code (and send the required input data to get the result data). How can i access the functions and variables of a midlet JAR file?
I try to decompile JAR into ja...
Hi,
I'm trying to register a midlet for push registration, in order to wake up from a bluetooth connection.
The requested behavior is that the application will wake up when a car's kit (hands free) will be in the range of the device.
Is it possible at all?
If yes, how should it be done?
Thanks in advance,
...
I cannot find much documentation about HashMaps in j2me. Does anyone have experience with this? How to create a HashMap?
Map map1 = new HashMap();
should work, right?
...
I want to get the following code to work in the Java ME / J2ME environment. Please help:
Hashtable <Activity, Float>scores = new Hashtable<Activity, Float>();
scores.put(act1, 0.3);
scores.put(act2, 0.5);
scores.put(act3, 0.4);
scores.put(act5, 0.3);
Vector v = new Vector(scores.entrySet());
Collections.sort(v)...
Hi,
I'm trying to capture a video stream using the video camera on a Java ME capable cell phone. How do I go about doing this? I've read about using MMAPI for capturing still images through a live camera feed, but I'm not sure whether it can capture a video stream that can be saved (with sound) and forwarded to a remote server.
...
i am creating a mobile application using j2me.
here i interact with webservices.
the response returned is in json.
how to parse it and get(store in a variable) value returned from it...
i m new to it kindly help!!!!!!!!!!!
Thanks in advance
...
When i run my midlet with Java Wireless toolkit, midlet runs correctly, but when it try to parse a textfield, following error occurs;
java.lang.RuntimeException: IOException reading reader invalid first byte 10010111
at com.sun.cldc.i18n.Helper.byteToCharArray(+228)
at com.sun.cldc.i18n.Helper.byteToCharArray(+9)
at java.lan...
Hi everyone,
I am running into a design problem. I have the following (pertinent) classes:
class LoginScreen {
public login() {
httpRequest = factory.createHttpRequest(url, method, this);
httpRequest.start();
}
public authorize() {
httpRequest = factory.createHttpRequest(url, method, this);
httpRequest...
i am using sun's lwuit library for making my user interface in java me.
i have a string containing newline characters. this is what i do:
String str = "lfjsdfsdfdkf\nsfljl\nsdfj";
TextArea box = new TextArea(str);
box.setEditable(false);
tab.addComponent(box);
tab is of type com.sun.lwuit.Container. Now when the string is displayed o...
I have an midlet running on JWT, and i want to export some data evaluated by the app. to some other application, or just able to get it to command line so i can send it as a param to some ather application.
Is it possible to send some data (values of a return function or a variable) to out of JWT, or is there any console or logging info...
Do you know any good library for Java ME?
Application from http://www.i-nigma.com/ works very well, but there is not too much information on this website.
Of course I found http://qrcode.sourceforge.jp/ but compared to above its really mediocre.
I need this library to read 2D-code and then decrypt cipher. Library can be commercial.
...
Hello, I'm doing this:
private Vector menuOptions;
void addOption(String imagefilename) {
try {
Image i = Image.createImage(imagefilename);
menuOptions.addElement((Object)i);
} catch (Exception e) {
e.printStackTrace();
}
}
And I'm getting:
java.lang.NullPointerException
at GraphicMenu.addOptio...
Hello,
I'm developing a J2ME app which securely connects to a server to login. I'm having a lot of difficulty in setting up the SSL between the two so I thought of a simpler solution and I'm hoping you can give your views on it.
The J2ME Midlet is shipped WITH the server's public key, on connect a message (username, password hash and r...
I have to develop a simple mobile application which sends the mobile's GPS position to a server. The first idea was that of creating this application to run on the iPhone, but i do not know how to develop in Objective-C and my time is limited. Since i am quite familiar with Java development and prefer developing in Java, i researched tec...
I want to develop a mobile application to view the streaming video on using a bluetooth connection between a PC and a mobile phone.
On server side video will be captured from a web cam connected to it and this video should be viewed on the mobile phone in the form of streaming video.
Please Help.
...
I'm trying to implement an existing XML parser: kXML.
I ran into the following error:
java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Scheduler.schedule(+52)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(...