Open GoogleCodeExporter opened 8 years ago
In Android 3.0.1 you can not use the network in the main thread.
A quick and dirty workaround:
Replace in org.connectbot.transport.SSH the two write method (around line
527)with:
@Override
public void write(final byte[] buffer) throws IOException {
new Thread(new Runnable() {
public void run() {
if (stdin != null)
try {
stdin.write(buffer);
} catch(Exception e) {
Log.e(TAG,"IO Exception",e);
}
}
}).start();
}
@Override
public void write(final int c) throws IOException {
new Thread(new Runnable() {
public void run() {
if (stdin != null)
try {
stdin.write(c);
} catch(Exception e) {
Log.e(TAG,"IO Exception",e);
}
}
}).start();
}
Original comment by kurt...@gmail.com
on 18 Jun 2011 at 7:09
could anybody tell, when bug will be fixed?
Original comment by igor.pot...@gmail.com
on 23 Jun 2011 at 9:14
I downloaded ConnectBot-git-2011-07-01_04-26-38.apk and it works on my Acer
Iconia.
Thanks for the fix.
Original comment by Simon.Tr...@gmail.com
on 4 Jul 2011 at 9:20
Original issue reported on code.google.com by
Simon.Tr...@gmail.com
on 12 Jun 2011 at 7:42Attachments: