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.lindenmobile.bsc.BSC.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());
    if (getResources().getBoolean(R.bool.portrait_only)) {
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    }//ww w. j a v  a  2s  .  c o m

    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.litterfeldt.ghost.AGhast.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());
    getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.lltao.app.lltao.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml1
    super.setIntegerProperty("splashscreen", R.drawable.screen);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");
    getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
}

From source file:com.locationbasedchat.MainActivity.java

License:Apache License

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

From source file:com.lvm.isiton.IsItOn.java

License:Apache License

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

From source file:com.mateev.workoutTimer.WorkoutTimer.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")

    DatabaseHelper helper = new DatabaseHelper(this.getApplicationContext(), 1);
    try {/*  w w  w  .ja v a2s.c o  m*/
        helper.createDataBase();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}

From source file:com.mclinic.MuzimaActivity.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.loadUrl(Config.getStartUrl());
}

From source file:com.medsolis.patientApp.HelloCordova.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    GCMIntentService.totalNotCnt = 0;//from   w w  w  . ja  v a  2s .  c  o m
    GCMIntentService.chatCnt = 1;
    GCMIntentService.reminderCnt = 1;
    GCMIntentService.alertsCnt = 1;
    GCMIntentService.questionCnt = 1;
    GCMIntentService.warningCnt = 1;
    GCMIntentService.healthTipsCnt = 1;
    String nottService = Context.NOTIFICATION_SERVICE;
    NotificationManager nottMgr = (NotificationManager) getApplicationContext().getSystemService(nottService);
    nottMgr.cancelAll();
    GCMIntentService.setBadge(getApplicationContext(), 0);
    // Set by <content src="index.html" /> in config.xml
    //super.setIntegerProperty("loadUrlTimeoutValue", 70000);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.mikerogers.podcastapp.Podcast_App.java

License:Apache License

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

    //super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true); 

    super.loadUrl(Config.getStartUrl());

    // Start a server to serve the cached data files.
    try {//from   www  .j a v a  2 s.  c o m
        // Should be 127.0.0.1 and a weirder port.
        mHttpServer = new AudioServer("127.0.0.1", 8080,
                new File(Environment.getExternalStorageDirectory(), "/Android/data/com.mikerogers.podcastapp/")
                        .getAbsoluteFile());
        mHttpServer.start();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}

From source file:com.mk.hello1.hello1.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");
}