Всёровно поток виснет на строке подключения...
public class Trans extends Thread {
public void run(){
try {
HttpConnection con = (HttpConnection) Connector.open("http://www.google.com:80/");
InputStream is = con.openInputStream();
long len = con.getLength();
int ch = 0;
char[] r = new char[300];
if (len != -1) {
for (int i = 0; i < len; i++) {
if ((ch = is.read()) != -1) {
r[i] = (char) ch;
}
}
} else {
int i = 0;
while ((ch = is.read()) != -1) {
r[i] = (char) ch;
i++;
}
}
is.close();
con.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}
public Trans(){
super();
start();
}
}