mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-20 07:52:53 +08:00
c255a84941
The preference creation actually needs to be before super.onCreate(savedInstance) in order to avoid the exception "requestFeature() must be called before adding content". Also ran into an issue in the native tests "Whitelist" and "User WebView/Client/Chrome" where it would throw an exception that the CordovaWebView appView already had a parent and needed to be removed from that parent before the invocation to root.addView(appView). So I conditionally remove the wrong parent. Also made a change to the native tests so the menus test would work. I also put super.init() back into the template, though invoking it is optional as loadUrl will call it automatically if needed.
45 lines
2.0 KiB
XML
45 lines
2.0 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<widget id="io.cordova.helloCordova" version="2.0.0" xmlns="http://www.w3.org/ns/widgets">
|
|
<name>Hello Cordova</name>
|
|
<description>
|
|
A sample Apache Cordova application that responds to the deviceready event.
|
|
</description>
|
|
<author email="dev@cordova.apache.org" href="http://cordova.io">
|
|
Apache Cordova Team
|
|
</author>
|
|
<access origin="*.apache.org" />
|
|
<access origin="http://*.google.com/*" />
|
|
<access origin="https://*.google.com/*" />
|
|
<access origin="https://*.googleapis.com/*" />
|
|
<access origin="https://*.gstatic.com/*" />
|
|
<content src="index.html" />
|
|
<preference name="loglevel" value="DEBUG" />
|
|
<preference name="useBrowserHistory" value="true" />
|
|
<preference name="exit-on-suspend" value="false" />
|
|
<preference name="showTitle" value="true" />
|
|
<feature name="Activity">
|
|
<param name="android-package" value="org.apache.cordova.test.ActivityPlugin" />
|
|
</feature>
|
|
<feature name="PluginStub">
|
|
<param name="android-package" value="org.apache.cordova.pluginApi.pluginStub" />
|
|
</feature>
|
|
</widget>
|