4 Replies Latest reply on Jun 23, 2016 7:07 AM by ronaldp16501174

    app icons not appearing on the installed app in andriod

    ronaldp16501174 Level 1

      hi

       

      i am using phone gap build version 3.5 for my app, how ever once i download my app to an andriod phone the app icon does not show although it  does show on the phone gap build site.

       

       

      How can i fix this

        • 1. Re: app icons not appearing on the installed app in andriod
          kerrishotts Adobe Community Professional

          Please share your config.xml file (sans identifying information) so we can double check if there are any problems there.

          • 2. Re: app icons not appearing on the installed app in andriod
            ronaldp16501174 Level 1

            (mod note: removed identifying info that isn't pertinent; replaced with "xxx")

             

            below is a copy of my config.xml

            the splash screen is appering, the one for the app is not

             

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

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

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

                    id        = "xxx"

                    version   = "1.0.0">

             

             

                <name>xxx</name>

             

                <description>

                

                </description>

             

             

                <author href="xxx" email="xxx">

                   xxx

                </author>

             

             

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

             

                <preference name="phonegap-version"           value="3.5.0" />          <!-- all: current version of PhoneGap -->

                <preference name="orientation"                value="default" />        <!-- all: default means both landscape and portrait are enabled -->

                <preference name="target-device"              value="universal" />      <!-- all: possible values handset, tablet, or universal -->

                <preference name="fullscreen"                 value="true" />           <!-- all: hides the status bar at the top of the screen -->

                <preference name="prerendered-icon"           value="true" />           <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->

                <preference name="ios-statusbarstyle"         value="black-opaque" />   <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->

                <preference name="detect-data-types"          value="true" />           <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->

                <preference name="exit-on-suspend"            value="false" />          <!-- ios: if set to true, app will terminate when home button is pImagessed -->

                <preference name="auto-hide-splash-screen"    value="true" />           <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->

                <preference name="disable-cursor"             value="false" />          <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->

                <preference name="android-minSdkVersion"      value="7" />              <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->

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

             

                <icon src="icon.png" gap:role="default"/>

                <icon src="Images/icon/android/icon36ldpi.png"   gap:platform="android"    gap:density="ldpi" />

                <icon src="Images/icon/android/icon48mdpi.png"   gap:platform="android"    gap:density="mdpi" />

                <icon src="Images/icon/android/icon72hdpi.png"   gap:platform="android"    gap:density="hdpi" />

                <icon src="Images/icon/android/icon96xhdpi.png"  gap:platform="android"    gap:density="xhdpi" />

                <icon src="Images/icon/blackberry/icon-80.png"     gap:platform="blackberry" />

                <icon src="Images/icon/blackberry/icon-80.png"     gap:platform="blackberry" gap:state="hover"/>

                <icon src="Images/icon/ios/icon57.png"            gap:platform="ios"        width="57" height="57" />

                <icon src="Images/icon/ios/icon72.png"            gap:platform="ios"        width="72" height="72" />

                <icon src="Images/icon/ios/icon572x.png"         gap:platform="ios"        width="114" height="114" />

                <icon src="Images/icon/ios/icon722x.png"         gap:platform="ios"        width="144" height="144" />

                <icon src="Images/icon/webos/icon-64.png"          gap:platform="webos" />

                <icon src="Images/icon/windows-phone/icon48.png"  gap:platform="winphone" />

                <icon src="Images/icon/windows-phone/icon173.png" gap:platform="winphone"   gap:role="background" />

             

             

                <gap:splash src="Images/screen/android/screen-ldpi-portrait.png"  gap:platform="android" gap:density="ldpi" />

                <gap:splash src="Images/screen/android/screen-mdpi-portrait.png"  gap:platform="android" gap:density="mdpi" />

                <gap:splash src="Images/screen/android/screen-hdpi-portrait.png"  gap:platform="android" gap:density="hdpi" />

                <gap:splash src="Images/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:density="xhdpi" />

                <gap:splash src="Images/screen/blackberry/screen-225.png"         gap:platform="blackberry" />

                <gap:splash src="Images/screen/ios/screen-iphone-portrait.png"    gap:platform="ios"     width="320" height="480" />

                <gap:splash src="Images/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios"     width="640" height="960" />

                <gap:splash src="Images/screen/ios/screen-ipad-portrait.png"      gap:platform="ios"     width="768" height="1024" />

                <gap:splash src="Images/screen/ios/screen-ipad-landscape.png"     gap:platform="ios"     width="1024" height="768" />

                <gap:splash src="Images/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" />

             

             

             

             

                <access origin="*"/>

             

             

            </widget>

            • 3. Re: app icons not appearing on the installed app in andriod
              kerrishotts Adobe Community Professional

              Is the location of the icon images the same as specified in config.xml? Given your paths, your project should look like this:

               

              (project root)/

                   config.xml

                   index.html

                   (etc)

                   icon.png

                   Images/

                       icon/

                            android/

                               icon36ldpi.png

                               ...

               

              Make sure that the case you specify in config.xml matches your file system; if your file system has "images" instead of "Images", that will fail.