Correct way of using JQuery-Mobile/Phonegap together?

You can use deferred feature of JQuery. var deviceReadyDeferred = $.Deferred(); var jqmReadyDeferred = $.Deferred(); document.addEventListener(“deviceReady”, deviceReady, false); function deviceReady() { deviceReadyDeferred.resolve(); } $(document).one(“mobileinit”, function () { jqmReadyDeferred.resolve(); }); $.when(deviceReadyDeferred, jqmReadyDeferred).then(doWhenBothFrameworksLoaded); function doWhenBothFrameworksLoaded() { // TBD }

Build android release apk on Phonegap 3.x CLI

This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below. Found part of the answer here, at Phonegap documentation. The full process is the following: Open a command line window, and go to /path/to/your/project/platforms/android/cordova. Run build –release. This creates an unsigned release APK at /path/to/your/project/platforms/android/bin folder, called YourAppName-release-unsigned.apk. Sign and align … Read more

ionic build Android | error: No installed build tools found. Please install the Android build tools

I fix this by downloading sdk package called platform-tools and buid-tools using sdkmanager. You can use sdkmanager.exe or if you are using SDK CLI, go to ~\AppData\Local\Android\sdk\tools\bin and run this command: sdkmanager “platform-tools” “platforms;android-26” or sdkmanager “build-tools;27.0.3” or both After that you should be able to run ionic cordova run android or ionic build android. … Read more

‘node’ is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

In Windows, you need to set node.js folder path into system variables or user variables. 1) open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables 2) in “User variables” or “System variables” find variable PATH and add node.js folder path as value. Usually it is C:\Program Files\nodejs;. If … Read more

phonegap open link in browser

As suggested in a similar question, use JavaScript to call window.open with the target argument set to _system, as per the InAppBrowser documentation: <a href=”#” onclick=”window.open(‘http://www.kidzout.com’, ‘_system’); return false;”>www.kidzout.com</a> This should work, though a better and more flexible solution would be to intercept all links’ click events, and call window.open with arguments read from the … Read more

Cordova : Requirements check failed for JDK 1.8 or greater

In Linux (Debian/Ubuntu) this can be solved by selecting a Java 1.8 SDK in sudo update-alternatives –config javac Changing JAVA_HOME env variable directly does not seem to have any effect. EDIT: responding to the comments: This probably has something to do with the fact that new Debian (and apparently Ubuntu) Java installations through the package … Read more

Phonegap Cordova installation Windows

After hours of frustration… here’s what i discovered. Ignore the installation documentation and all the command line, node.js stuff (seriously you will waste hours on this. Go to github and simply download the PhoneGap master .zip In that zip are project files for window phone, etc platform… just use those templates. I don’t know how … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)