アプリケーションでこのコードを使用しました-
public class BorderCastList extends Activity {
private VideoView video;
private ServerSocket server;
private MediaController media;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Settings window for translucent state
// this.getWindow().setFormat(PixelFormat.TRANSLUCENT);
this.setContentView(R.layout.video);
new Thread(new Runnable() {
@Override
public void run() {
try {
Log.i("test", "before info ServerSocket");
server = new ServerSocket(8050)
Log.i("test", "after info ServerSocket");
Log.i("ip:" + server.getLocalSocketAddress() + "----port: "
+ server.getLocalPort(), "");
Log.i("service ip: " + server.getInetAddress(), "");
Log.i("Server build success************", "");
// Socket socket = server.accept();
} catch (Exception e) {
Log.i("aaa", "bbbb");
e.printStackTrace();
}
}
}).start();
)
Log.i("test", "before info ServerSocket");
ログ出力を取得しているのに取得できない のはなぜですかLog.i("test", "after info ServerSocket");
Log.i("ip:" + server.getLocalSocketAddress() + "----port: "+ server.getLocalPort(), "");
Log.i("server ip: " + server.getInetAddress(), "");
Log.i("Server build success************", "");
の後に実行されないのはなぜnew ServerSocket(8050)
ですか?