cordova-3

Log message “_cordovaNative is missing” on Android newer than 3.2

纵然是瞬间 提交于 2019-12-05 22:10:47
On a Samsung Galaxy Tab 2.0 (Android 4.0.4) and a on Samsung Galaxy S2 (Android 4.12), any Cordova application logs the following message, read through command "adb logcat" D/CordovaLog(21525): file:///android_asset/www/cordova.js: Line 966 : Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only. Does this message indicates that the performance of the app may not be optimal because of the missing "_cordovaNative"? I am using Ubuntu 13.10 and Android SDK Tools Revision 22.6.3. To replicate the issue, I connect a device on my computer via USB, and

Jquery Mobile 1.4 external panel do not open after navigating to other page

三世轮回 提交于 2019-12-05 13:42:39
We are developing an mobile application using jquery mobile and apache cordova. After migrating to jquery mobile 1.4.0 we switched to external panel but there is a problem with the panel. There is a simple example of the problem in http://jsfiddle.net/Q58MZ/3/ To reproduce the problem you must: 1 click on page1 from the menu link 2 click on page2 from the menu link 3 click on page1 from the menu link 4 click on page2 from the menu link 5 click on "GO TO PAGE 1" link in the content Then the menu wont open it will add classes that its open but it wont open. Here is the sample code to reproduce

How to find SHA1 in Cordova project

我只是一个虾纸丫 提交于 2019-12-05 10:04:08
So... I need to get a SHA1 key. I'm not a Java fan, so I'm creating my app in Cordova but I need the SHA1 to register it in Google's Developer Console. Does someone know where it is? I tried importing the project in Android studio but still couldn't find anything... For Windows you have to create it using command prompt.First go to your java bin directory via the cmd like C:\Program Files\Java\jdk1.7.0_71\bin,then type keytool -list -v -keystore c:\users\your_user_name\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android For Mac users go to terminal ,then type

Netbeans create/import cordova project from existing source

醉酒当歌 提交于 2019-12-05 07:32:04
Netbeans create/import cordova project from existing source? I have netbeans 8.0, And created Cordova project from commandline, now i want to open this project in Netbeans, But i don't see any option to import existing source code and create cordova project from source. New Project -> HTML5 -> HTML5 Application with Existing Sources 来源: https://stackoverflow.com/questions/23913022/netbeans-create-import-cordova-project-from-existing-source

Phonegap Error: “An error occurred while listing Android targets” while installing Phonegap on Ubuntu

谁都会走 提交于 2019-12-05 06:14:12
http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide As metioned in the above doc, I have already installed the required software for Phonegap as I have getting versions: For Java: $ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) For ANT $ ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 For Node.JS $ npm -version 1.4.3 Now, the problem is when I create a phonegap project for Android like this "$ cordova create

[WebCoreSharedBufferData getBytes:range:]: range {0, 8} exceeds data length 0'

只谈情不闲聊 提交于 2019-12-05 04:26:19
I'm updating my application for iOs 7.I'd developed this application for cordova(phone gap). while i run this app, i got error: FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175:500b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[WebCoreSharedBufferData getBytes:range:]: range {0, 8}

How to add resources file to my phonegap project

混江龙づ霸主 提交于 2019-12-05 03:32:24
问题 I'am using Cordova LocalNotification-Plugin to show some notification to user . Now what I want to do is to have a specific sound on notification . They said to add this window.plugin.notification.local.add({ sound: 'android.resource://' + package_name +/raw/beep}); Note: Local sound files must be placed into the res-folder and not into the assets-folder. I don't know in which res folder should I put my mp3. And if I try to put it into main res folder where I have : drawable; drawable-hdpi;

Open a local pdf file with cordova

血红的双手。 提交于 2019-12-05 02:25:51
问题 Im using cordova 3.3.0 and i would like to open a local pdf file and then close it on user demand. ref = window.open(encodeURI(path), '_blank', 'location=yes'); ref.addEventListener('exit', function() { ref.removeEventListener('exit', function(){}); ref.close(); } ); This opens a file in inapp browser but i cannot get back to the actual app when I open some pdf file. How to add some close button or something ? Im trying to get this working on ios. 回答1: Long time since you asked this but just

Phonegap 3.3 Eclipse: -CordovaLib project missing Android properties

六眼飞鱼酱① 提交于 2019-12-05 01:28:05
问题 Trying to import new PhoneGap 3.3 project into Eclipse 4.3.1 - after initial phonegap CLI build I import 2 projects (HelloWorld and HelloWorld-CordovaLib). I get "The import org.apache.cordova cannot be resolved" error as CordovaLib seems not to be linked as library to the HelloWorld project. However, I am not able to flag the CordovaLib project in its Android properties as "Is library" (as per this post) because there is no Android section in its properties (the project seems not to behave

Clean command for cordova/phonegap 3.5

时光怂恿深爱的人放手 提交于 2019-12-04 17:10:11
问题 I am trying to clean my cordova 3.5 project. So i try to do as it says at the bottom of this page: http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide $ /path/to/project/cordova/clean So i navigate to cordova directory in my project :~/Desktop/work/project/platforms/android/cordova$ cd clean bash: cd: clean: Not a directory :~/Desktop/work/3.5/10/project/platforms/android/cordova$ clean No command 'clean' found, did you mean: Command