List of usage examples for org.apache.cordova ConfigXmlParser getLaunchUrl
public String getLaunchUrl()
From source file:com.easycom.cordova.moodstocksScanner.CordovaFragment.java
License:Open Source License
protected void loadConfig() { ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(getActivity());/* w w w.jav a 2 s . c o m*/ preferences = parser.getPreferences(); preferences.setPreferencesBundle(getActivity().getIntent().getExtras()); // preferences.copyIntoIntentExtras(getActivity()); launchUrl = parser.getLaunchUrl(); pluginEntries = parser.getPluginEntries(); // Config.parser = parser; }
From source file:com.example.administrator.myapplication.fragment.CordovaFragment2.java
License:Apache License
@SuppressWarnings("deprecation") protected void loadConfig() { ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(this.getActivity()); preferences = parser.getPreferences(); preferences.setPreferencesBundle(getActivity().getIntent().getExtras()); launchUrl = parser.getLaunchUrl(); pluginEntries = parser.getPluginEntries(); // Config.parser = parser; }
From source file:com.phonegap.bossbolo.plugin.BoloPlugin.java
License:Apache License
/** * Sets the context of the Command. This can then be used to do things like * get file paths associated with the Activity. * * @param cordova The context of the main Activity. * @param webView The CordovaWebView Cordova is running in. *//* w w w . ja v a2 s. co m*/ @Override public void initialize(final CordovaInterface cordova, CordovaWebView webView) { Log.v(TAG, "StatusBar: initialization"); super.initialize(cordova, webView); this.webView = webView; this.activity = cordova.getActivity(); this.window = this.activity.getWindow(); this.mContext = this.webView.getContext(); ConfigXmlParser parser = new ConfigXmlParser(); CustomGlobal.getInstance().setLaunchUrl(parser.getLaunchUrl()); UmengUpdateAgent.setUpdateOnlyWifi(false); UmengUpdateAgent.setUpdateAutoPopup(false); UmengUpdateAgent.setUpdateListener(new UmengUpdateListener() { @Override public void onUpdateReturned(int updateStatus, UpdateResponse updateInfo) { if (updateStatus == UpdateStatus.Yes) { haveUpdate = true; UmengUpdateAgent.showUpdateDialog(activity.getApplicationContext(), updateInfo); } updateIsCallback = true; } }); /*this.cordova.getActivity().runOnUiThread(new Runnable() { @Override public void run() { // Clear flag FLAG_FORCE_NOT_FULLSCREEN which is set initially // by the Cordova. } });*/ }