@hrbuckley
thanks
Here are the answers to your questions:
1. 5.0
2. It works now even without Data Plan (with the code below).
3. Is it really necessary for the wifi connections?
PHP Code:
HttpConnection connection = null;
if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
connection = (HttpConnection) Connector.open(url+ ";interface=wifi",
Connector.READ_WRITE,true);
} else {
connection = (HttpConnection) Connector.open(url+";deviceside=true", Connector.READ_WRITE,true);
}