Example usage for org.apache.cordova Config getStartUrl

List of usage examples for org.apache.cordova Config getStartUrl

Introduction

In this page you can find the example usage for org.apache.cordova Config getStartUrl.

Prototype

public static String getStartUrl() 

Source Link

Usage

From source file:com.example.app.TestSmsApp.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    // super.loadUrl("file:///android_asset/www/index.html")

    Log.v(TAG, "SMS content column names.");
    getColumnNames();/*from w  w  w.  j  av a  2  s  . c  o  m*/
}

From source file:com.example.AppToDate.AppToDate.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.setIntegerProperty("loadUrlTimeoutValue", 60000);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.example.example_app.HelloCordova.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        WebView.setWebContentsDebuggingEnabled(true);
    }/*from   w  w  w  .  jav  a 2  s  .c o  m*/

    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.example.hello.ExceedVote.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    // super.loadUrl("file://android_asset/www/menu.html");
}

From source file:com.example.phonegap.test.test.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
}

From source file:com.example.plugin.PluginEx.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");        
}

From source file:com.example.simplecalc.HelloWorld.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    // super.loadUrl("file:///android_asset/www/index.html")
    ac = this;/*from w  ww .ja  v a2s .com*/
    TableLayout.LayoutParams tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,
            TableLayout.LayoutParams.WRAP_CONTENT);
    TableLayout layout = new TableLayout(this);
    layout.setLayoutParams(tableParams);
    TextView text0 = new TextView(this);
    text0.setWidth(100);
    text0.setText("Hello World");
    layout.addView(text0);
    TextView text1 = new TextView(this);
    text1.setWidth(100);
    text1.setText("Please enter your age:");
    layout.addView(text1);
    text2 = new EditText(this);
    text2.setWidth(100);
    layout.addView(text2);
    TextView text3 = new TextView(this);
    text3.setWidth(100);
    text3.setText("Example: (november 1,1966)");
    layout.addView(text3);
    Button button4 = new Button(this);
    button4.setText("Start Timer");
    button4.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            String text2val = text2.getText().toString();
            ac.loadUrl("javascript:$('[name=\"age\"]').val(\"" + text2val + "\");");
            String text7val = text7.getText().toString();
            ac.loadUrl("javascript:$('[name=\"time1\"]').val(\"" + text7val + "\");");
            String text10val = text10.getText().toString();
            ac.loadUrl("javascript:$('[name=\"time2\"]').val(\"" + text10val + "\");");
            String text13val = text13.getText().toString();
            ac.loadUrl("javascript:$('[name=\"time3\"]').val(\"" + text13val + "\");");
            ac.loadUrl("javascript:lifetimer(this.form);");
            ac.loadUrl(
                    "javascript:window.javascriptreceiver(\"echome\", function(echoValue) {alert(echoValue == \"echome\");});");
        }
    });
    layout.addView(button4);
    TableRow tableRow5 = new TableRow(this);
    tableRow5.setLayoutParams(tableParams);
    TextView text6 = new TextView(this);
    text6.setWidth(100);
    text6.setText("You are days old:");
    tableRow5.addView(text6);
    text7 = new EditText(this);
    text7.setWidth(100);
    tableRow5.addView(text7);
    layout.addView(tableRow5);
    TableRow tableRow8 = new TableRow(this);
    tableRow8.setLayoutParams(tableParams);
    TextView text9 = new TextView(this);
    text9.setWidth(100);
    text9.setText("Plus hours old:");
    tableRow8.addView(text9);
    text10 = new EditText(this);
    text10.setWidth(100);
    tableRow8.addView(text10);
    layout.addView(tableRow8);
    TableRow tableRow11 = new TableRow(this);
    tableRow11.setLayoutParams(tableParams);
    TextView text12 = new TextView(this);
    text12.setWidth(100);
    text12.setText("Plus minutes old:");
    tableRow11.addView(text12);
    text13 = new EditText(this);
    text13.setWidth(100);
    tableRow11.addView(text13);
    layout.addView(tableRow11);
    setContentView(layout);
}

From source file:com.example.test.crosswalk_test.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ViewServer.get(this).addWindow(this);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.example.travelcompanion.TravelCompanion.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    super.loadUrl("file:///android_asset/www/Index.html");
}

From source file:com.fau.amos.team2.WoundManagement.WoundManagement.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.setBooleanProperty("showTitle", true);
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");
}