Skip to content

Commit a06585a

Browse files
author
Animesh Kumar
committedFeb 12, 2011
refactored code, added license, added onError handler
1 parent b89a326 commit a06585a

File tree

8 files changed

+564
-1034
lines changed

8 files changed

+564
-1034
lines changed
 

‎assets/www/js/websocket.js

136 Bytes
Binary file not shown.

‎src/com/strumsoft/App.java

+2-11
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,19 @@
2828
import android.os.Bundle;
2929

3030
import com.phonegap.DroidGap;
31-
import com.strumsoft.util.Logger;
3231
import com.strumsoft.websocket.phonegap.WebSocketFactory;
3332

3433
/**
3534
* The Class App.
3635
*/
3736
public class App extends DroidGap {
38-
39-
/**
40-
* Called when the activity is first created.
41-
*
42-
* @param savedInstanceState the saved instance state
43-
*/
44-
@Override
37+
38+
@Override
4539
public void onCreate(Bundle savedInstanceState) {
4640
super.onCreate(savedInstanceState);
4741
super.loadUrl("file:///android_asset/www/index.html");
4842

49-
// attach logger
50-
appView.addJavascriptInterface(Logger.class, "Logger");
5143
// attach websocket factory
5244
appView.addJavascriptInterface(new WebSocketFactory(appView), "WebSocketFactory");
5345
}
54-
5546
}

‎src/com/strumsoft/util/Logger.java

-49
This file was deleted.

‎src/com/strumsoft/websocket/WebSocket.java

-42
This file was deleted.

0 commit comments

Comments
 (0)
Failed to load comments.