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.feedhenry.kiergurney.FHMap.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FHMapInstance = new com.feedhenry.kiergurney.map.FHMap(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.fmf.lapetitefalope.lapetitefalope.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    CanvasCamera c;//  w  w w.  jav a 2 s  .  c  o  m

    super.onCreate(savedInstanceState);
    super.init();
    super.appView.setHorizontalScrollBarEnabled(false);
    super.appView.setVerticalScrollBarEnabled(false);
    super.loadUrl(Config.getStartUrl());

    Log.i(TAG, "going go check gps");
    if (checkPlayServices()) {
        Log.i(TAG, "gps ok");

        gcm = GoogleCloudMessaging.getInstance(this);
        regid = getRegistrationId(this);
        Log.i(TAG, "got registrationId " + regid);
        if (regid.isEmpty()) {
            registerInBackground();
        } else {
            Log.i(TAG, "regid not empty, so direct register to our backend");
            sendRegistrationIdToBackend();
        }

    }
}

From source file:com.Foo.DemoPhoneGap.DemoPhoneGap.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());
    PowerManager pm = (PowerManager) getApplicationContext().getSystemService(Context.POWER_SERVICE);
    PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE,
            "GLOBAL");
    wl.acquire();//from   ww  w.j  a  va  2  s.co  m
    // super.loadUrl("file:///android_asset/app/index.html");
    //super.setIntegerProperty("loadUrlTimeoutValue", 10000);
    //        this.registerReceiver(this.mNetworkEnabled,
    //                new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
    //        this.registerReceiver(this.rHeadsetWired,
    //                new IntentFilter(Intent.ACTION_HEADSET_PLUG));
    //        this.registerReceiver(this.rIncomingCall,
    //                new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED));

}

From source file:com.foundops.phonegapandroidmeteorboilderplate.PhoneGapAndroidMeteorBoilderplate.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")
}

From source file:com.gabiq.trivia.Trivia.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.test/index-android.html");

    sMe = this;//from ww w .  j  a v  a  2 s  . c o  m
    webView = this.appView;

    startService();
    bindChordService();

    try {
        mLauncher = new Launcher(this);
    } catch (RuntimeException e) {
        Log.e("Trivia", e.getMessage());
    }
}

From source file:com.gaojin.htapp.htapp.java

License:Apache License

@SuppressWarnings("deprecation")
@Override/*from w  w w  .  ja  va  2s. com*/
public void onCreate(Bundle savedInstanceState) {
    super.setIntegerProperty("splashscreen", R.drawable.screen);
    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");
    phonenum = getPhoneNumber();

    NetWorkStatus nw = new NetWorkStatus();
    if (nw.isNetworkConnected(htapp.this)) {
        UpdateManager um = new UpdateManager(htapp.this);
        try {
            um.checkUpdate();
        } catch (Exception e) {
            e.printStackTrace();
            Log.e("", e.toString());
        }

    } else {
        new AlertDialog.Builder(htapp.this).setTitle("??")
                .setMessage("??!")
                .setPositiveButton("", new OnClickListener() {
                    @Override
                    public void onClick(DialogInterface arg0, int arg1) {
                        finish();
                    }
                }).show();
    }

}

From source file:com.geeksong.MalifauxModels.Malifaux.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("splashscreen", R.drawable.screen);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.geusgod.app.jongsapp.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")

    //splash  // ww w.  j  ava  2 s  .  c o  m
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 2000);
}

From source file:com.github.controller.Controller.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")

    //super.addService("BluetoothClient", "com.github.controller.BluetoothClient");

}

From source file:com.glowing_bear.glowingbear.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());
}