Skip to content

Commit

Permalink
refactored code, added license, added onError handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Animesh Kumar committed Feb 12, 2011
1 parent b89a326 commit a06585a
Show file tree
Hide file tree
Showing 8 changed files with 564 additions and 1,034 deletions.
Binary file modified assets/www/js/websocket.js
Binary file not shown.
13 changes: 2 additions & 11 deletions src/com/strumsoft/App.java
Expand Up @@ -28,28 +28,19 @@
import android.os.Bundle;

import com.phonegap.DroidGap;
import com.strumsoft.util.Logger;
import com.strumsoft.websocket.phonegap.WebSocketFactory;

/**
* The Class App.
*/
public class App extends DroidGap {

/**
* Called when the activity is first created.
*
* @param savedInstanceState the saved instance state
*/
@Override

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");

// attach logger
appView.addJavascriptInterface(Logger.class, "Logger");
// attach websocket factory
appView.addJavascriptInterface(new WebSocketFactory(appView), "WebSocketFactory");
}

}
49 changes: 0 additions & 49 deletions src/com/strumsoft/util/Logger.java

This file was deleted.

42 changes: 0 additions & 42 deletions src/com/strumsoft/websocket/WebSocket.java

This file was deleted.

0 comments on commit a06585a

Please sign in to comment.