Browse files

solved bug in server

  • Loading branch information...
1 parent f00c618 commit 2bf504cca3e0072f536662186a1427fdd2cadfe2 Francesco Zanitti committed Mar 30, 2010
View
BIN android-btsim-application/dist/BluetoothEmulator.apk
Binary file not shown.
View
0 ...pplication/res/layout/btenablecontrol.xml → ...oid-btsim-application/res/layout/ctrl.xml
File renamed without changes.
View
2 android-btsim-application/src-sysactivities/dk/itu/android/btemu/BTEnableControl.java
@@ -11,7 +11,7 @@
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(R.layout.btenablecontrol);
+ setContentView(R.layout.ctrl);
BluetoothAdapter.SetContext(this);
}
View
BIN btsim-server/dist/btsimserver.jar
Binary file not shown.
View
3 btsim-server/src/dk/itu/btemu/Server.java
@@ -80,7 +80,7 @@ public static void main(String args[]) throws Exception {
String sport = s.substring("--port=".length());
port = Integer.parseInt(sport);
} else if(s.startsWith("--adb.path=")) {
- ADB_CMD_PATH = s.substring("--adb.path".length());
+ ADB_CMD_PATH = s.substring("--adb.path=".length());
}
}
}
@@ -94,6 +94,7 @@ public static void main(String args[]) throws Exception {
s.start();
System.out.println("Server started on port " + s.port);
+ System.out.println("ADB command: "+ ADB_CMD());
System.out.println("press any key to exit");
System.in.read();
System.out.println("exiting...");

0 comments on commit 2bf504c

Please sign in to comment.