Hello,
I have an application to run on a cell phone equipped with Wi-Fi and an application on a desktop which I want to communicate with. The problem is that I want to find in a Local Area Network the IP and port of the machine who has my service running. I can guarantee that there will be at maximum only one machine running it.
I sea...
Hi Java programmers. I badly need your help.
I have a JavaFX/Java ME application. I'm trying to modify an XML file inside my project's folder (soon to be packaged jar file).
The path of the file I want to write: /parseExample/service1.xml
Sadly, my application is a JavaFx/JavaME so it doesn't contain the library java.util.jar.
So I c...
I have a JavaME application called ParseExample. I can't seem to access the files inside the project's folders using the code below.
FileConnection fconn = (FileConnection) Connector.open("/ParseExample/service1.xml", Connector.READ_WRITE);
Here is the structure:
ParseExample
-Source Packages
-XMLCreatorExample.java
...
Hi,
I was searching a way to use nine-patch images in order to handle multiple screen size but I did not find. Do you know if it exists such library ?
Regards,
Quentin
...
I want to access the files encircled in this screenshot.
What path should I use?
This is for my JavaME application. file:///ParseExample/service1.xml doesn't seem to be the right one.
http://www.fileden.com/files/2010/5/28/2872707//projectfiles.JPG
Edit:
Here is my code:
FileConnection fconn = (FileConnection) Connector.open("file:///...
InputStream is = this.getClass().getResourceAsStream("/ParseExample/service1.xml");
The code above generates a java.io.IOException: Root is not accessible.
This is the structure of the project folder
http://www.fileden.com/files/2010/5/28/2872707//projectfiles.JPG
How can I properly locate the file? What path should be used?
...
Why public InputStream getResourceAsStream(String name) is in Class class? It just give inputstream of file which is in jar file and there is no relation with Class class. so it can be static method and it can be in any class.
...
Hi experts
I am continuously google but still didn't find any solution:
I want to access .net soap based web service from J2me mobile application. For that i generate stub using netbean & java mobile sdk 3, & i am unable to send soap header.
plz guide me, any code link will be great.
question 2:
Should I use stub or Ksoap for same pur...
Hi,
I need to lighten an image in the j2me. Can somebody help me?
please, it's urgent.
Thank you.
...
hi someone send the source code or any logic for the brick game in j2me
...
There's a line A-B and C at the center between A and B. It forms a circle as in the figure. If we assume A-B line as a diameter of the circle and then C is it's center. My problem is I have no idea how to draw another three lines (in blue) each 45 degree away from AC or AB. No, this is not a homework, it's part of my complex geometry in ...
For javame.
Since getResourceAsStream() is for reading files, is there a getResourceAsStream() equivalent for output stream / writing files?
Note: the file is inside the project's folders and will soon be packaged into a jarfile.
...
Hello
I want to make am HTTP GET request from my J2ME application using HttpConnection class.
The problem is that I cannot send russian text in the query string.
Here is the example of how I'm sending the request
c = (HttpConnection)Connector.open("http://127.0.0.1:1418/zp.ashx?тест");
InputStream s = c.openInputStream();
The recei...
how can i determine the color depth of the display device during runtime. is this even possible?
...
hi all,
i have a big problem that i spent 2days working on it but i didn't have any satisfied result,
i want to draw shapes in j2me like arc, round rectangle , line but with different border width ; namely i want to make border of these shapes more large such as using BasicStroke class in Jse.
i tried a lot of solutions such as drawing...
Hi all,
I m doing a commercial j2me project in which I need some good Gui like tabbed pane and auto complete text boxes and I need a constant look and feel across all handsets so anyone having idea what gui tool used for commercial apps. I found j2me polish and LWUIT but I m confused which is preferred in j2me commercial apps.
Regards
...
Hello,
I'm working on a JavaME project and need to import external libraries, which are available to me as jar files. So I selected the project properties -> libraries & resources -> add Jar/Zip and added the jar file there.
When editing the code, everything works. I can import the classes from this library and use them as expected. B...
I'm a J2SE programmer from 3 years, and I would like to start studing about J2ME, which is the best site/book to start?
...
I installed JavaME and EclipseME, and I'm trying to make a Hello World to my Nokia5530. But the imports are not working.
This page says that I need a "Device" file, but I don't know where to find it.. any idea?
...
I am new to Blackberry development and having problems getting started.
Could anyone guide me to relevant resources like tutorials and/or simple sample programs?
...