its compiling fine, icon is coming as per expectation ... but splash screen is not showing , here is my config.xml file :----
Please suggest why splashscreen is not getting displayed ??? I have tested on android phone 5.2 & 4.3 both. Same problem no splashscreen . ==================================================================================== <?xml version='1.0' encoding='utf-8'?> <widget id="com.DineshGuleria.UiMagician" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>UiMagician</name> <description> Sample App for IoT used in VSCP project ..!! </description> <author email="[email protected]" href="https://sites.google.com/site/uimagician/"> UiMagician team ..!! </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" version="1" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <icon src="res/icon/icon.png" width="57" height="57" density="mdpi" /> <feature name="SplashScreen"> <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" /> </feature> <platform name="android"> <allow-intent href="market:*" /> <!-- you can use any density that exists in the Android project --> <splash src="res/drawable-xhdpi/screen.png" density="land-hdpi"/> <splash src="res/drawable-xhdpi/screen.png" density="land-ldpi"/> <splash src="res/drawable-xhdpi/screen.png" density="land-mdpi"/> <splash src="res/drawable-xhdpi/screen.png" density="land-xhdpi"/> <splash src="res/drawable-xhdpi/screen.png" density="port-hdpi"/> <splash src="res/drawable-xhdpi/screen.png" density="port-ldpi"/> <splash src="res/drawable-xhdpi/screen.png" density="port-mdpi"/> <splash src="res/drawable-xhdpi/screen.png" density="port-xhdpi"/> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <preference name="SplashScreen" value="screen" /> <preference name="SplashScreenDelay" value="4000" /> </widget> ==================================================================================== On Sat, May 16, 2015 at 4:33 PM, Bnaya Peretz <[email protected]> wrote: > It's should work > On May 16, 2015 2:02 PM, "Dinesh Guleria" <[email protected]> wrote: > >> >> It will work on older devices its not the minimum api lvl its the max >> api lvl >> ok got >> >> >> Why not to complie against 21? >> Is it recommended to use api 21 ? can we not go for latest api 22 ? >> >> On Sat, May 16, 2015 at 3:41 PM, Bnaya Peretz <[email protected]> wrote: >> >>> Why not to complie against 21? It will work on older devices its not the >>> minimum api lvl its the max api lvl >>> On May 16, 2015 10:48 AM, "Dinesh Guleria" <[email protected]> >>> wrote: >>> >>>> Something i found in this link :---- >>>> >>>> http://stackoverflow.com/questions/28877109/cordova-android-project-doesnt-compile >>>> >>>> Could be the case that :-- >>>> android.webkit.ClientCertRequest, which is newly added in API level 21 >>>> and i am compiling my project against api 19. >>>> >>>> I am installing android api 22 using android sdk manager. Then I will >>>> try compiling with api 22. >>>> >>>> If i am correct android api 22 is Android 5.1.1. >>>> >>>> But one question i have is cordova android app build using :-- >>>> cordova 5.0 + cordova android 4.0.0 + android api 22 >>>> >>>> Now Will this app run on lower version of android devices ? >>>> Like i have android device with Android version 4.3 or 4.2 or 4.0 ? So >>>> will this app work on lower android devices ?? >>>> >>>> Please suggest. >>>> >>>> Regards, >>>> Dinesh >>>> >>>> On Sat, May 16, 2015 at 12:07 PM, Dinesh Guleria <[email protected] >>>> > wrote: >>>> >>>>> Hi, >>>>> >>>>> I am getting following error, while using cordova 5.0 & android 4.0.0 >>>>> in cordova project. >>>>> Please suggest how to resolve this error ..??? >>>>> >>>>> I have installed cordova 5.0 & using the android 4.0.0 in my cordova >>>>> project. >>>>> ============== I am using following plugins in my project =========== >>>>> >>>>> cordova plugin add org.apache.cordova.device >>>>> cordova plugin add org.apache.cordova.console >>>>> cordova plugin add https://github.com/mkuklis/phonegap-websocket >>>>> cordova plugin add org.apache.cordova.splashscreen >>>>> cordova plugin add >>>>> https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview >>>>> >>>>> ===================================================================== >>>>> >>>>> By default android project is created to be build with android api 22 >>>>> but i have changed it to be build for api 19. >>>>> By modifying following to files. >>>>> >>>>> I have changed the AndroidManifest.xml following line to api 19 :-- >>>>> <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" /> >>>>> >>>>> changed following file project.properties :-- >>>>> target=android-19 >>>>> >>>>> >>>>> =================== error after build -- cordova build android >>>>> ========================== >>>>> :preBuild >>>>> :compileArmv7DebugNdk UP-TO-DATE >>>>> :preArmv7DebugBuild >>>>> :checkArmv7DebugManifest >>>>> :preX86DebugBuild >>>>> :CordovaLib:compileLint >>>>> :CordovaLib:copyDebugLint UP-TO-DATE >>>>> :CordovaLib:mergeDebugProguardFiles UP-TO-DATE >>>>> :CordovaLib:preBuild >>>>> :CordovaLib:preDebugBuild >>>>> :CordovaLib:checkDebugManifest >>>>> :CordovaLib:prepareDebugDependencies >>>>> :CordovaLib:compileDebugAidl UP-TO-DATE >>>>> :CordovaLib:compileDebugRenderscript UP-TO-DATE >>>>> :CordovaLib:generateDebugBuildConfig UP-TO-DATE >>>>> :CordovaLib:generateDebugAssets UP-TO-DATE >>>>> :CordovaLib:mergeDebugAssets UP-TO-DATE >>>>> :CordovaLib:generateDebugResValues UP-TO-DATE >>>>> :CordovaLib:generateDebugResources UP-TO-DATE >>>>> :CordovaLib:packageDebugResources UP-TO-DATE >>>>> :CordovaLib:processDebugManifest UP-TO-DATE >>>>> :CordovaLib:processDebugResources UP-TO-DATE >>>>> :CordovaLib:generateDebugSources UP-TO-DATE >>>>> :CordovaLib:compileDebugJava >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor >>>>> dovaClientCertRequest.java:25: error: cannot find symbol >>>>> import android.webkit.ClientCertRequest; >>>>> ^ >>>>> symbol: class ClientCertRequest >>>>> location: package android.webkit >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor >>>>> dovaClientCertRequest.java:32: error: cannot find symbol >>>>> private final ClientCertRequest request; >>>>> ^ >>>>> symbol: class ClientCertRequest >>>>> location: class CordovaClientCertRequest >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor >>>>> dovaClientCertRequest.java:34: error: cannot find symbol >>>>> public CordovaClientCertRequest(ClientCertRequest request) { >>>>> ^ >>>>> symbol: class ClientCertRequest >>>>> location: class CordovaClientCertRequest >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebChromeClient.java:251: error: cannot find symbol >>>>> public boolean onShowFileChooser(WebView webView, final >>>>> ValueCallback<Uri[]> >>>>> filePathsCallback, final WebChromeClient.FileChooserParams >>>>> fileChooserParams) { >>>>> >>>>> >>>>> ^ >>>>> symbol: class FileChooserParams >>>>> location: class WebChromeClient >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebViewClient.java:29: error: cannot find symbol >>>>> import android.webkit.ClientCertRequest; >>>>> ^ >>>>> symbol: class ClientCertRequest >>>>> location: package android.webkit >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebViewClient.java:116: error: cannot find symbol >>>>> public void onReceivedClientCertRequest (WebView view, >>>>> ClientCertRequest req >>>>> uest) >>>>> ^ >>>>> symbol: class ClientCertRequest >>>>> location: class SystemWebViewClient >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebChromeClient.java:249: error: cannot find symbol >>>>> @TargetApi(Build.VERSION_CODES.LOLLIPOP) >>>>> ^ >>>>> symbol: variable LOLLIPOP >>>>> location: class VERSION_CODES >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemCookieManager.java:37: error: cannot find symbol >>>>> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { >>>>> ^ >>>>> symbol: variable LOLLIPOP >>>>> location: class VERSION_CODES >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemCookieManager.java:38: error: cannot find symbol >>>>> cookieManager.setAcceptThirdPartyCookies(webView, true); >>>>> ^ >>>>> symbol: method setAcceptThirdPartyCookies(WebView,boolean) >>>>> location: variable cookieManager of type CookieManager >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemCookieManager.java:59: error: cannot find symbol >>>>> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { >>>>> ^ >>>>> symbol: variable LOLLIPOP >>>>> location: class VERSION_CODES >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemCookieManager.java:60: error: cannot find symbol >>>>> cookieManager.flush(); >>>>> ^ >>>>> symbol: method flush() >>>>> location: variable cookieManager of type CookieManager >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebChromeClient.java:250: error: method does not override or >>>>> implement >>>>> a method from a supertype >>>>> @Override >>>>> ^ >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebChromeClient.java:257: error: cannot find symbol >>>>> Uri[] result = >>>>> WebChromeClient.FileChooserParams.parseResult >>>>> (resultCode, intent); >>>>> ^ >>>>> symbol: variable FileChooserParams >>>>> location: class WebChromeClient >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng >>>>> ine\SystemWebViewClient.java:114: error: method does not override or >>>>> implement a >>>>> method from a supertype >>>>> @Override >>>>> ^ >>>>> Note: Some input files use or override a deprecated API. >>>>> Note: Recompile with -Xlint:deprecation for details. >>>>> 14 errors >>>>> :CordovaLib:compileDebugJava FAILED >>>>> >>>>> FAILURE: Build failed with an exception. >>>>> >>>>> * What went wrong: >>>>> Execution failed for task ':CordovaLib:compileDebugJava'. >>>>> > Compilation failed; see the compiler error output for details. >>>>> >>>>> * Try: >>>>> Run with --stacktrace option to get the stack trace. Run with --info >>>>> or --debug >>>>> option to get more log output. >>>>> >>>>> BUILD FAILED >>>>> >>>>> Total time: 6.012 secs >>>>> >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> >>>>> \cross_plugin\UiMagician\platforms\android\cordova\node_modules\q\q.js:126 >>>>> throw e; >>>>> ^ >>>>> Error code 1 for command: cmd with args: /s /c >>>>> "D:\temp\test\single\ake_app\ake_ >>>>> >>>>> app_one_bulb_sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platfor >>>>> ms\android\gradlew cdvBuildDebug -b >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb >>>>> >>>>> _sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platforms\android\b >>>>> uild.gradle -Dorg.gradle.daemon=true" >>>>> ERROR building one of the platforms: Error: >>>>> D:\temp\test\single\ake_app\ake_app_ >>>>> >>>>> one_bulb_sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platforms\a >>>>> ndroid\cordova\build.bat: Command failed with exit code 8 >>>>> You may not have the required environment or OS to build this project >>>>> Error: >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mob >>>>> ile_app\cross_plugin\UiMagician\platforms\android\cordova\build.bat: >>>>> Command fai >>>>> led with exit code 8 >>>>> at ChildProcess.whenDone >>>>> (C:\Users\dinesh.RESGBLR\AppData\Roaming\npm\node_m >>>>> >>>>> odules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) >>>>> at ChildProcess.emit (events.js:98:17) >>>>> at maybeClose (child_process.js:756:16) >>>>> at Process.ChildProcess._handle.onexit (child_process.js:823:5) >>>>> >>>>> >>>>> D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app >>>>> \cross_plugin\UiMagician> >>>>> >>>>> ==================================================================== >>>>> >>>>> Regards, >>>>> Dinesh >>>>> >>>>> On Fri, May 15, 2015 at 5:53 AM, Zhang, Belem <[email protected]> >>>>> wrote: >>>>> >>>>>> Thanks Bnaya, this this one good option. >>>>>> >>>>>> >>>>>> >>>>>> This issue had been fixed on latest build, e.g. Beta 14.43.343.3, it >>>>>> cannot reproduce. >>>>>> >>>>>> >>>>>> >>>>>> If you don’t like to use the beta 14.43.343.3/14.43.343.4, and no >>>>>> willing to use Crosswalk WebView plugin, please don’t use latest version >>>>>> but 0.3.5 of splashscreen plugin. >>>>>> >>>>>> >>>>>> >>>>>> BR >>>>>> >>>>>> Belem >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> *From:* Crosswalk-help [mailto: >>>>>> [email protected]] *On Behalf Of *Bnaya >>>>>> Peretz >>>>>> *Sent:* Thursday, May 14, 2015 8:37 PM >>>>>> *To:* Dinesh Guleria >>>>>> *Cc:* [email protected] >>>>>> *Subject:* Re: [Crosswalk-help] crosswalk + cordova -- compile error >>>>>> for release build >>>>>> >>>>>> >>>>>> >>>>>> I Would recommend to update your project to cordova 5 & cordova >>>>>> android platform to 4+ and then use this plugin >>>>>> https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview >>>>>> >>>>>> >>>>>> >>>>>> Read about it more here >>>>>> >>>>>> https://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html >>>>>> And >>>>>> https://cordova.apache.org/news/2015/04/21/tools-release.html >>>>>> >>>>>> >>>>>> >>>>>> On Thu, May 14, 2015 at 9:43 AM, Dinesh Guleria < >>>>>> [email protected]> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> >>>>>> >>>>>> I am able to migrate the existing cordova project to crosswalk >>>>>> webview, following this link >>>>>> >>>>>> >>>>>> https://crosswalk-project.org/documentation/cordova/migrate_an_application.html >>>>>> >>>>>> >>>>>> >>>>>> I am using api 19 :-- >>>>>> >>>>>> android update project --subprojects --path . --target "android-19" >>>>>> >>>>>> >>>>>> >>>>>> My app is building fine for debug build :-- >>>>>> >>>>>> cordova build android >>>>>> >>>>>> >>>>>> >>>>>> But now when i do an release build i use to get this error. Please >>>>>> see the attached image. >>>>>> >>>>>> cordova build android --release >>>>>> >>>>>> >>>>>> >>>>>> Release build is not successful. >>>>>> >>>>>> >>>>>> >>>>>> ============== I am using following plugins in my project =========== >>>>>> >>>>>> >>>>>> >>>>>> cordova plugin add org.apache.cordova.device >>>>>> >>>>>> cordova plugin add org.apache.cordova.console >>>>>> >>>>>> cordova plugin add https://github.com/mkuklis/phonegap-websocket >>>>>> >>>>>> cordova plugin add org.apache.cordova.splashscreen >>>>>> >>>>>> >>>>>> >>>>>> ===================================================================== >>>>>> >>>>>> >>>>>> >>>>>> Please suggest how to resolve this error ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Regards, >>>>>> >>>>>> Dinesh >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Crosswalk-help mailing list >>>>>> [email protected] >>>>>> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
