org.apache.cordova.ConfigXmlParser Java Examples
The following examples show how to use
org.apache.cordova.ConfigXmlParser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EmbeddedWebViewActivity.java From keemob with MIT License | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Set up the webview ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(this); SystemWebView webView = (SystemWebView) findViewById(R.id.cordovaWebView); webInterface = new CordovaWebViewImpl(new SystemWebViewEngine(webView)); webInterface.init(cordovaInterface, parser.getPluginEntries(), parser.getPreferences()); webView.loadUrl(parser.getLaunchUrl()); }
Example #2
Source File: BridgeActivity.java From OsmGo with MIT License | 5 votes |
public void loadConfig(Context context, Activity activity) { ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(context); preferences = parser.getPreferences(); preferences.setPreferencesBundle(activity.getIntent().getExtras()); pluginEntries = parser.getPluginEntries(); }
Example #3
Source File: HotCodePushPlugin.java From cordova-hot-code-push with MIT License | 5 votes |
/** * Getter for the startup page. * * @return startup page relative path */ private String getStartingPage() { if (!TextUtils.isEmpty(startingPage)) { return startingPage; } ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(cordova.getActivity()); String url = parser.getLaunchUrl(); startingPage = url.replace(LOCAL_ASSETS_FOLDER, ""); return startingPage; }
Example #4
Source File: CodePush.java From reacteu-app with MIT License | 4 votes |
private String getConfigLaunchUrl() { ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(this.cordova.getActivity()); return parser.getLaunchUrl(); }