473,395 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MIDP 2.0 and socket

Hi,

I have a Motorola V525 with MIDP 2.0 support.
I'm tring to use MIDP 2.0 sockets without success. In the development
environment(Sun ONE Studio 5), everything seems to work but
when I download the midlet in the telephone and I launch it,
it blocks when it tries to open the socket:

SocketConnection sc =
(SocketConnection)Connector.open("socket://xxx.xxx.xxx.xxx:xx");

without throwing any exception.
If I open a HTTP connection (with HttpConnection class) to the same IP
address and port, it is correctly opened (but I can't use this
connection because the server doesn't support http).
Any suggestion? A gprs configuration problem?

Thanks

Gianluca
Jul 17 '05 #1
0 1880

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jone Smide | last post by:
Is there a way to calculate a cos and a sin in J2ME MIDP 1.0?
5
by: SpaceCowboy | last post by:
I'm using Sun ONE Studio 4 update 1, Community Edition with Nokia Developer's Suite integration. I'm developing a J2ME project with MIDP. I wanted to use the java.math.floor() function, but...
0
by: Jens Christian Larsen | last post by:
I have downloaded and installed the MIDP and CLDC reference implementations from java.sun.com but I can't seem to get them to work properly on Windows. When I start one of the example MIDlets in...
0
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk...
8
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the...
1
by: Raaijmakers, Vincent (IndSys,GE Interlogix) | last post by:
Does anyone know what could be the problem if PNG generated by PIL don't work for (java) MIDP applications? All the images can be used by different type of graphical applications. The java MIDP...
1
by: Anoniem | last post by:
Hi, I'm trying to start a example which comes with the midp2.0 distribution. My relevant environment variables are set in a batch file like: ...
1
by: james | last post by:
Hi, New to this, so bear with me! I am creating a simple Midp mobile phone app. I am saving a "username" and "password" to rms, this returns two recordID's. When my app runs, it needs to...
1
by: IvanGammelgaard | last post by:
I believe that MIDP 2.0 and CLDC 1.1 is the frameworks/platforms to use when you want to target most mobile phones on the market. If you think otherwise - please give me your thoughts. But what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.