Hello,
I'm trying to get the mobile's IP, i've searched the internet but no luck so far. I've already tried:
ServerSocketConnection scn =...
Type: Posts; User: Infernal01; Keyword(s):
Hello,
I'm trying to get the mobile's IP, i've searched the internet but no luck so far. I've already tried:
ServerSocketConnection scn =...
Thanks, that was helpfull.
Hi,
I'm developing a J2ME client that calls operations from a WS. Every time i make a call, the phone displayes the 3G icon on the top-left side of the screen, even tho my application is...
Thanks, Bouncy Castle seems a bit large, 1 MB :D
Here is what i did on my Windows 7 64 bit:
1. Install Java Runtime Environment (JRE)
2. Install Java Standard Edition Development Kit (J2SE SDK)
3. Install NetBeans IDE with everything included...
Hi, what should i use for password encryption ? I'm not really familiar with the encryption styles, but i think i need something "one-way".
On J2SE i use java.security.MessageDigest with SHA-256,...
You can use Canvas and draw everything yourself, create custom text boxes, drop down menus, scrolls, etc. It can be alot of work, but you can reuse them and make them suite your desires.
Thank you so much !!!
It's working perfect, here is the code in case someone else needs it:
public void callOperation() {
try {
SoapObject request = new...
I don't understand
The soap i read as response is not correct (i've read it with tcp monitor).
I think my uploading code is not correct:
SoapObject request = new SoapObject(namespace, "getDetails");
...
That's the problem, i don't know how to read the response.
One second...
Wow thanks, it seems to be working, i get some kind of response, i just don't know how to read the xml inside it.
What do i do with that SoapObject response ? I have to cast it to another object...
Sending XML to a web service is easy, i can use JAXB. But when retrieving, JAXB seems to not be supported by J2ME since i always get a class cast exception.
What else can i do to retrieve XML code...
Hi, i'm having problems with the GPS, here is my code:
try {
Criteria cr = new Criteria();
cr.setHorizontalAccuracy(500);
LocationProvider lp = LocationProvider.getInstance(cr);
...
Thanks for your response.
How usual is this ? I guess phones with Symbian but what about Windows Mobile phones ?
Alex.
Just like:
public static final int UP = -1;
public static final int DOWN = -2;
public static final int LEFT = -3;
public static final int RIGHT = -4;
What...
Graham, i love you !
I was never good at using streams, i always skipped them, i should really start learning how to use them.
It's working, and the complete code is:
J2ME client code:
...
I appreciate your help, i just tried both your suggestions but it's still not working.
This is my servlet code:
ServletInputStream in = request.getInputStream();
byte[] data = null;
int chunkSize = 512;
int index = 0;
int...
Hi, i'm having some trouble sending a byte array via http connection stream to servlet, here is my client code:
byte[] bytes = ImageByteArray.getByteArrayFromImage(img); ...
Yes, thank you.
I do have another question: this is the best way to transfer files, but is this the only way ?
Alex
Maybe i should rephrase :)
What are the options to exchange files between a J2ME application and a web service ?
Are MTOM, SOAP with Attachments available ? I also read about sending files to a...
So far i've been sending base64 with the pixel data, but this doesn't work so well.
Is there any other way to get an image from a web service ? If yes, where do i start ?
Thanks,
Alex
No, but i only get this exception when i run the emulator. On the actual device it works fine.
I always try the operation twice :)