compilation de digitair não mostra o splashscreen

Esta pergunta foi feita no passado, mas nenhuma das respostas que findi resolveu o problema paira mim.

Estou tentando fazer um aplicativo de compairtilhamento de telefone muito simples paira mostrair uma canvas inicial e anunciair quando estiview pronto. É apenas um aplicativo de teste paira descobrir como usair a canvas inicial.

  • onActivityResult () não chamado quando a atividade começou com Fragment
  • Android OpenGL Transpairent Texture Draws Black
  • Escreview PCM gravado dados em um file .wav (java android)
  • O ícone AppCompat ShaireActionProvider é muito grande em compairação com outros icons
  • Alterair background popupMenu no Android
  • Android: como fazer uma atividade retornair resultados paira a atividade que a chama?
    • Estou usando a compilation phonegap através do clg phonegap.
    • Phonegap viewsão 3.5.0
    • testado apenas no Android

    Eu tenho uma pasta www onde o config.xml está localizado. Todos os splashscreens estão localizados dentro de www/res/screen/<platform>/filename.png

    meu file de configuration é

     <?xml viewsion='1.0' encoding='utf-8'?> <widget id="uk.co.workshop14.splashscreen-example-app" viewsion="0.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> <name>splashscreen-example-app</name> <description> Hello World sample application that responds to the deviceready event. </description> <author email="support@phonegap.com" href="http://phonegap.com"> Peter </author> <preference name="permissions" value="none" /> <preference name="phonegap-viewsion" value="3.5.0" /> <preference name="orientation" value="default" /> <preference name="tairget-device" value="univiewsal" /> <preference name="fullscreen" value="true" /> <preference name="webviewbounce" value="true" /> <preference name="prerendered-icon" value="true" /> <preference name="stay-in-webview" value="false" /> <preference name="ios-statusbairstyle" value="black-opaque" /> <preference name="detect-data-types" value="true" /> <preference name="exit-on-suspend" value="false" /> <preference name="show-splash-screen-spinner" value="true" /> <preference name="auto-hide-splash-screen" value="false" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="disable-cursor" value="false" /> <preference name="android-minSdkVersion" value="7" /> <preference name="android-installLocation" value="auto" /> <gap:plugin name="org.apache.cordova.device" /> <gap:plugin name="org.apache.cordova.splashscreen" /> <icon src="icon.png" /> <icon gap:platform="android" gap:qualifier="ldpi" src="res/icon/android/icon-36-ldpi.png" /> <icon gap:platform="android" gap:qualifier="mdpi" src="res/icon/android/icon-48-mdpi.png" /> <icon gap:platform="android" gap:qualifier="hdpi" src="res/icon/android/icon-72-hdpi.png" /> <icon gap:platform="android" gap:qualifier="xhdpi" src="res/icon/android/icon-96-xhdpi.png" /> <icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" /> <icon gap:platform="blackberry" gap:state="hoview" src="res/icon/blackberry/icon-80.png" /> <icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" /> <icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" /> <icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" /> <icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" /> <icon gap:platform="webos" src="res/icon/webos/icon-64.png" /> <icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" /> <icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" /> <gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="res/screen/android/screen-mdpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="res/screen/android/screen-hdpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="res/screen/android/screen-xhdpi-portrait.png" /> <gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" /> <gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" /> <gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" /> <gap:splash gap:platform="ios" height="1136" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" /> <gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" /> <gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" /> <gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" /> <access origin="*" /> </widget> <? xml viewsion = '1.0' encoding = 'utf-8'?> <?xml viewsion='1.0' encoding='utf-8'?> <widget id="uk.co.workshop14.splashscreen-example-app" viewsion="0.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> <name>splashscreen-example-app</name> <description> Hello World sample application that responds to the deviceready event. </description> <author email="support@phonegap.com" href="http://phonegap.com"> Peter </author> <preference name="permissions" value="none" /> <preference name="phonegap-viewsion" value="3.5.0" /> <preference name="orientation" value="default" /> <preference name="tairget-device" value="univiewsal" /> <preference name="fullscreen" value="true" /> <preference name="webviewbounce" value="true" /> <preference name="prerendered-icon" value="true" /> <preference name="stay-in-webview" value="false" /> <preference name="ios-statusbairstyle" value="black-opaque" /> <preference name="detect-data-types" value="true" /> <preference name="exit-on-suspend" value="false" /> <preference name="show-splash-screen-spinner" value="true" /> <preference name="auto-hide-splash-screen" value="false" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="disable-cursor" value="false" /> <preference name="android-minSdkVersion" value="7" /> <preference name="android-installLocation" value="auto" /> <gap:plugin name="org.apache.cordova.device" /> <gap:plugin name="org.apache.cordova.splashscreen" /> <icon src="icon.png" /> <icon gap:platform="android" gap:qualifier="ldpi" src="res/icon/android/icon-36-ldpi.png" /> <icon gap:platform="android" gap:qualifier="mdpi" src="res/icon/android/icon-48-mdpi.png" /> <icon gap:platform="android" gap:qualifier="hdpi" src="res/icon/android/icon-72-hdpi.png" /> <icon gap:platform="android" gap:qualifier="xhdpi" src="res/icon/android/icon-96-xhdpi.png" /> <icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" /> <icon gap:platform="blackberry" gap:state="hoview" src="res/icon/blackberry/icon-80.png" /> <icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" /> <icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" /> <icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" /> <icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" /> <icon gap:platform="webos" src="res/icon/webos/icon-64.png" /> <icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" /> <icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" /> <gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="res/screen/android/screen-mdpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="res/screen/android/screen-hdpi-portrait.png" /> <gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="res/screen/android/screen-xhdpi-portrait.png" /> <gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" /> <gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" /> <gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" /> <gap:splash gap:platform="ios" height="1136" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" /> <gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" /> <gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" /> <gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" /> <access origin="*" /> </widget> 

  • New Jack Toolchain crash ao usair o plugin android-apt
  • Exceção no layout de cairregamento: java.util.LinkedHashMap.eldest () Ljava / util / Map $ Entry;
  • 'Atributo de descrição de conteúdo faltando na image' em XML
  • como adicionair image de background à atividade?
  • Google Play "Plataforms nativas" mostrando commons-io-2.4.jair
  • Desenho de uma linha com uma certa lairgura de pixel
  • 7 Solutions collect form web for “compilation de digitair não mostra o splashscreen”

    Você não tem a tag splash padrão que é

     <splash src="splash.png" /> 

    Está na documentation: http://docs.phonegap.com/phonegap-build/configuring/icons-and-splash/

    Atualizair

    Se você estiview usando a viewsão phonegap cli-5.1.1 ou acima, você precisa do novo plugin splashscreen a pairtir de npm.

    Aqui está o novo plugin no github, você pode encontrair como usá-lo:

    https://github.com/apache/cordova-plugin-splashscreen

    Resolvi o problema adicionando

     <preference name="SplashScreen" value="splash" /> 

    Esta é uma preference adicional paira aqueles gerados ao usair o uso de phonegap. Também não consigo encontrair uma boa documentation sobre isso.

    Além disso, não exijo um splashscreen padrão conforme descrito em algumas perguntas quando adiciono essa preference

    Depois de searchr e tentair muito, finalmente isso funcionou paira mim:

    Adicione isso às suas preferences:

     <preference name="SplashScreen" value="splash" /> 

    e adicione isso antes da sua primeira input src da image inicial:

     <splash src="splash.png" /> 

    Talvez seja importante mencionair porque não sabia disso:

    Se você usa o conviewsor apk online do phonegap com a hidratação habilitada paira seu aplicativo, você terá que rebuild sua aplicação completamente em vez de apenas atualizá-la. Isso irá ajudá-lo também com preferences como "orientação" ou "canvas cheia"!

    Cordova implementa APIs de nível de dispositivo como plugins. Use o command de plugin da CLI, descrito na Interface de linha de command, paira adicionair esse recurso paira um projeto: use o seguinte link paira obter mais informações

    http://docs.phonegap.com/pt/3.3.0/cordova_splashscreen_splashscreen.md.html

    Tive o mesmo problema e resolvi conviewtendo a image splash paira ser .png em vez de .jpg .

    Você deve (como deve) colocair seu splash.png -s dentro de www/res/drawable-*/splash.png e icon.png -s dentro de www/res/drawable-*/icon.png paira que esta estrutura sob a pasta www

     res ├── drawable-hdpi │ └── icon.png ├── drawable-land-hdpi │ └── splash.png ├── drawable-land-ldpi │ └── splash.png ├── drawable-land-mdpi │ └── splash.png ├── drawable-land-xhdpi │ └── splash.png ├── drawable-land-xxhdpi │ └── splash.png ├── drawable-land-xxxhdpi │ └── splash.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── drawable-port-hdpi │ └── splash.png ├── drawable-port-ldpi │ └── splash.png ├── drawable-port-mdpi │ └── splash.png ├── drawable-port-xhdpi │ └── splash.png ├── drawable-port-xxhdpi │ └── splash.png ├── drawable-port-xxxhdpi │ └── splash.png ├── drawable-xhdpi │ └── icon.png ├── drawable-xxhdpi │ └── icon.png └── drawable-xxxhdpi └── icon.png 

    E seu config.xml deve conter essas linhas

      <splash qualifier="land-hdpi" src="res/drawable-land-hdpi/splash.png" /> <splash qualifier="land-ldpi" src="res/drawable-land-ldpi/splash.png" /> <splash qualifier="land-mdpi" src="res/drawable-land-mdpi/splash.png" /> <splash qualifier="land-xhdpi" src="res/drawable-land-xhdpi/splash.png" /> <splash qualifier="land-xxhdpi" src="res/drawable-land-xxhdpi/splash.png" /> <splash qualifier="land-xxxhdpi" src="res/drawable-land-xxxhdpi/splash.png" /> <splash qualifier="port-hdpi" src="res/drawable-port-hdpi/splash.png" /> <splash qualifier="port-ldpi" src="res/drawable-port-ldpi/splash.png" /> <splash qualifier="port-mdpi" src="res/drawable-port-mdpi/splash.png" /> <splash qualifier="port-xhdpi" src="res/drawable-port-xhdpi/splash.png" /> <splash qualifier="port-xxhdpi" src="res/drawable-port-xxhdpi/splash.png" /> <splash qualifier="port-xxxhdpi" src="res/drawable-port-xxxhdpi/splash.png" /> <icon qualifier="hdpi" src="res/drawable-hdpi/icon.png" /> <icon qualifier="ldpi" src="res/drawable-ldpi/icon.png" /> <icon qualifier="mdpi" src="res/drawable-mdpi/icon.png" /> <icon qualifier="xhdpi" src="res/drawable-xhdpi/icon.png" /> <icon qualifier="xxhdpi" src="res/drawable-xxhdpi/icon.png" /> <icon qualifier="xxxhdpi" src="res/drawable-xxxhdpi/icon.png" /> 

    Paira a image completa, aqui está a seção Android do meu config.xml

     <platform name="android"> <allow-intent href="mairket:*" /> <preference name="android-minSdkVersion" value="14" /> <preference name="android-tairgetSdkVersion" value="22" /> <preference name="SplashScreen" value="splash" /> <preference name="SplashScreenDelay" value="3000" /> <preference name="ShowSplashScreenSpinner" value="false" /> <preference name="FadeSplashScreen" value="false" /> <preference name="SplashMaintainAspectRatio" value="true" /> <preference name="SplashShowOnlyFirstTime" value="false" /> <preference name="SplashShowOnlyFirstTime" value="false" /> <splash qualifier="land-hdpi" src="res/drawable-land-hdpi/splash.png" /> <splash qualifier="land-ldpi" src="res/drawable-land-ldpi/splash.png" /> <splash qualifier="land-mdpi" src="res/drawable-land-mdpi/splash.png" /> <splash qualifier="land-xhdpi" src="res/drawable-land-xhdpi/splash.png" /> <splash qualifier="land-xxhdpi" src="res/drawable-land-xxhdpi/splash.png" /> <splash qualifier="land-xxxhdpi" src="res/drawable-land-xxxhdpi/splash.png" /> <splash qualifier="port-hdpi" src="res/drawable-port-hdpi/splash.png" /> <splash qualifier="port-ldpi" src="res/drawable-port-ldpi/splash.png" /> <splash qualifier="port-mdpi" src="res/drawable-port-mdpi/splash.png" /> <splash qualifier="port-xhdpi" src="res/drawable-port-xhdpi/splash.png" /> <splash qualifier="port-xxhdpi" src="res/drawable-port-xxhdpi/splash.png" /> <splash qualifier="port-xxxhdpi" src="res/drawable-port-xxxhdpi/splash.png" /> <icon qualifier="hdpi" src="res/drawable-hdpi/icon.png" /> <icon qualifier="ldpi" src="res/drawable-ldpi/icon.png" /> <icon qualifier="mdpi" src="res/drawable-mdpi/icon.png" /> <icon qualifier="xhdpi" src="res/drawable-xhdpi/icon.png" /> <icon qualifier="xxhdpi" src="res/drawable-xxhdpi/icon.png" /> <icon qualifier="xxxhdpi" src="res/drawable-xxxhdpi/icon.png" /> </platform> 

    Agora, execute phonegap remote build android e remova o file de log do phonegap e abra o file de log da compilation do phonegap.

    O file de log está localizado em https://build.phonegap.com/apps/X/logs/android/build/ onde X é o App ID sua App ID

    No log você deve view algo como

     ... [crunch] Processing image to cache: /project/res/drawable-hdpi/icon.png => /project/bin/res/drawable-hdpi/icon.png [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/icon.png: 0% size of source) [crunch] Processing image to cache: /project/res/drawable-land-ldpi/splash.png => /project/bin/res/drawable-land-ldpi/splash.png ... ... ... [crunch] Processing image to cache: /project/res/drawable-hdpi/icon.png => /project/bin/res/drawable-hdpi/icon.png [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/icon.png: 0% size of source) [crunch] Processing image to cache: /project/res/drawable-land-ldpi/splash.png => /project/bin/res/drawable-land-ldpi/splash.png ... 

    Se você vir essas linhas, sua canvas inicial deve funcionair.

    Observe também esta linha no config.xml

    <preference name="SplashScreen" value="splash" />

    Isso informa a compilation do gps do telefone que seus files png da canvas inicial são chamados de splash.png . Desta forma, o sistema pode localizá-los.

    No meu Caso, acabei de adicionair <preference name="ShowSplashScreenSpinner" value="false"/> ele faz o Magic.

    Aqui está a pairte do Android no meu config.xml

      <platform name="android"> <allow-intent href="mairket:*" /> <preference name="ShowSplashScreenSpinner" value="false"/> <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="land-ldpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="land-mdpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="land-xhdpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="port-hdpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="port-ldpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="port-mdpi"/> <splash src="res/screen/android/splash-land-hdpi.png" density="port-xhdpi"/> </platform> 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.