Switch to a sencha touch based ui.

This ui is shared with the iOS version of WebODF.
This commit is contained in:
Jos van den Oever
2011-12-13 08:50:42 +01:00
parent 98a7dcb23d
commit dab5e2d1bf
30 changed files with 5380 additions and 532 deletions
@@ -0,0 +1,33 @@
package org.webodf;
import android.os.Bundle;
import com.phonegap.DroidGap;
public class WebODFActivity extends DroidGap {
private String path;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
path = null;
if (getIntent() != null && getIntent().getData() != null) {
path = getIntent().getData().getPath();
}
setContentView(R.layout.main);
super.loadUrl("file:///android_asset/www/index.html");
}
@Override
protected void onResume() {
super.onResume();
if (path == null) {
return;
}
String escapedPath = "file://" + path.replace("'", "\\'");
sendJavascript("invokeString = '" + escapedPath + "';");
}
}