3 Replies Latest reply on Sep 15, 2016 10:15 PM by byronlevi

    Issue with Android config.xml

    byronlevi Level 1

      Hi All,

      I am working with a team and we are more familiar with builds for iOS.

      We created this config.xml for the Android build, however, when we try downloading and testing it on devices, it crashes after opening.

      I am guessing the config.xml document may contain errors causing this.

       

      Could you review the below config.xml for Android and provide your thoughts or even a base config.xml we could use?

       

      <?xml version="1.0" encoding="UTF-8" ?>

        <widget xmlns = "http://www.w3.org/ns/widgets"

        xmlns:gap = "http://phonegap.com/ns/1.0"

        xmlns:android = "http://schemas.android.com/apk/res/android"

        id        = "com.company.appname"

        versionCode="20"

        version   = "2.0.0">

       

        <name>APPTEST</name>

        <description>Android App Test - Descripton to be added here.</description>

        <author href="http://www.none.com" email="none@none.com"> Company Name </author>

       

        <feature name="http://api.phonegap.com/1.0/battery"/>

        <feature name="http://api.phonegap.com/1.0/camera"/>

        <feature name="http://api.phonegap.com/1.0/contacts"/>

        <feature name="http://api.phonegap.com/1.0/file"/>

        <feature name="http://api.phonegap.com/1.0/geolocation"/>

        <feature name="http://api.phonegap.com/1.0/media"/>

        <feature name="http://api.phonegap.com/1.0/network"/>

        <feature name="http://api.phonegap.com/1.0/notification"/>

       

       

      <preference name="phonegap-version" value="cli-6.3.0" />

      <preference name="android-build-tool" value="gradle" />

      <preference name="orientation" value="default" />

      <preference name="fullscreen" value="false" />

      <preference name="target-device" value="handset" />

      <preference name="webviewbounce" value="false" />

      <preference name="prerendered-icon" value="false" />

      <preference name="stay-in-webview" value="false" />

      <preference name="detect-data-types" value="true" />

      <preference name="exit-on-suspend" value="false" />

      <preference name="show-splash-screen-spinner" value="false" />

      <preference name="auto-hide-splash-screen" value="false" />

      <preference name="FadeSplashScreen " value="true" />

      <preference name="EnableViewportScale" value="true" />

      <preference name="MediaPlaybackRequiresUserAction" value="false" />

      <preference name="AllowInlineMediaPlayback" value="true" />

      <preference name="BackupWebStorage" value="none" />

      <preference name="TopActivityIndicator" value="white" />

      <preference name="KeyboardDisplayRequiresUserAction" value="false" />

      <preference name="KeyboardShrinksView " value="true" />

      <preference name="HideKeyboardFormAccessoryBar" value="false" />

      <preference name="SuppressesIncrementalRendering" value="false" />

      <preference name="windows-identity-name" value="" />

      <preference name="android-minSdkVersion" value="0" />

      <preference name="android-targetSdkVersion" value="14" />

      <preference name="android-maxSdkVersion" value="0" />

      <preference name="android-installLocation" value="auto" />

      <preference name="SplashScreenDelay" value="1000" />

      <preference name="ErrorUrl" value="null" />

      <preference name="BackgroundColor" value="0x000000" />

      <preference name="DisallowOverscroll" value="true" />

      <preference name="LoadingDialog" value="," />

      <preference name="LoadUrlTimeoutValue" value="null" />

       

       

      <plugin name="org.apache.cordova.inappbrowser" />

       

        <platform name="android">

        </platform>

       

        <icon src="icon.png" />

        

              <!-- Android Splash Screens for PhoneGap -->

              <platform name="android">

               <splash src="androidl.png"    density="ldpi" />

        <splash src="androidm.png"    density="mdpi" />

        <splash src="anroidh.png"    density="hdpi" />

             <splash src="androidx.png"   density="xhdpi" />

               <icon src="icon.png"      gap:qualifier="ldpi" />

               <icon src="icon.png"      gap:qualifier="mdpi" />

               <icon src="icon.png"      gap:qualifier="hdpi" />

               <icon src="icon.png"     gap:qualifier="xhdpi" />

          </platform>

       

          </widget>

       

       

      Thank you for your help!