cordova-2.0.0

Phonegap - Error - Keystore alias not recognized

一世执手 提交于 2019-12-05 03:52:53
I am strugging to sign an Android app using Phonegap Build I get the following error: Error - Keystore alias not recognized I am using this to create the keystore in my terminal: keytool -genkey -v -keystore name.keystore -alias alias -keyalg RSA -keysize 2048 -validity 10000 -storepass password What should I be using for the 'name' and 'alias', am I missing something? Thanks. Try this way. https://github.com/amirudin/build/wiki/Android-Signing If the alias is not recognized, the alias field you provided was not found on the keystore file that you uploaded. If the keystore format was invalid,

How to build apache cordova project from command line?

删除回忆录丶 提交于 2019-12-04 18:27:09
问题 I've setup apache cordova on my Windows/Cygwin platform. I can create project using the command - cordova create <app_name> . I have added android platform using the command - cordova platform add android I can run the sample 'html/css/js' using cordova ripple android . I can upload the project to build.phonegap and get the .apk file. I know from docs that I can setup eclipse and do the build. (I'm not looking for this) But I cannot create .apk file using the command cordova build android .

How to implement phonegap/cordova in android webview?

喜欢而已 提交于 2019-12-04 15:10:13
I need just a few minutes for someone to tell me if these steps are correct for implementing cordova in a android webview: EDIT: Ok I finally got it working these are the right steps: 1) I create project: cordova create hello com.example.hello HelloWorld and enter the folder 2) cordova platform add android , cordova run android (cordova.jar is created) => the app is launched => device is ready is shown 3) I create a cordova_layout.xml in "/res/layout" with this code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout

Phonegap/Cordova App Shrink too small on high resolution device like Samsung Galaxy S4

99封情书 提交于 2019-12-04 09:59:35
问题 My Phonegap/Cordova app looks fine with the setting below, on devices like iPhone 4/4S (640x960), HTC Desire HD (480x800), Samsung Galaxy Note etc. <meta name="viewport" content="user-scalable=no, initial-scale=0.75, maximum-scale=1, minimum-scale=0.75, width=device-width, height=device-height, target-densitydpi=device-dpi" /> But it shrinks too small on ultra high resolution devices like Samsung Galaxy S4 (1080x1920, 5.0 inches ~441 ppi pixel density), that user may need a magnifying glass

Plugin cannot be resolved to a type issue- cordova-2.7.0

萝らか妹 提交于 2019-12-03 22:35:54
问题 I have added Cordova-2.7.0.jar file and js file in the PhoneGap application given in this link. But now i'm getting this error. How to solve this error? 回答1: You need to update the plugin architecture (see here), something like this: Replace: import org.apache.cordova.api.Plugin; import org.apache.cordova.api.PluginResult; import org.apache.cordova.api.PluginResult.Status; with: import org.apache.cordova.api.CallbackContext; import org.apache.cordova.api.CordovaPlugin; Change: public class

How does phoneGap (Cordova) work internally, iOS specific

假装没事ソ 提交于 2019-12-03 16:56:13
问题 I have started developing html applications for mutliple platforms. I recently heard about Cordova 2.0(PhoneGap) and ever since I have been curious to know how the bridge works. After lot of code walking, i saw that the Exec.js is the code where call from JS -> Native happens execXhr = execXhr || new XMLHttpRequest(); // Changeing this to a GET will make the XHR reach the URIProtocol on 4.2. // For some reason it still doesn't work though... execXhr.open('HEAD', "file:///!gap_exec", true);

How to build apache cordova project from command line?

ぐ巨炮叔叔 提交于 2019-12-03 12:16:00
I've setup apache cordova on my Windows/Cygwin platform. I can create project using the command - cordova create <app_name> . I have added android platform using the command - cordova platform add android I can run the sample 'html/css/js' using cordova ripple android . I can upload the project to build.phonegap and get the .apk file. I know from docs that I can setup eclipse and do the build. (I'm not looking for this) But I cannot create .apk file using the command cordova build android . When I run the command, there is not output on the command line, the command just finishes. I cannot

Phonegap/Cordova App Shrink too small on high resolution device like Samsung Galaxy S4

孤者浪人 提交于 2019-12-03 05:34:14
My Phonegap/Cordova app looks fine with the setting below, on devices like iPhone 4/4S (640x960), HTC Desire HD (480x800), Samsung Galaxy Note etc. <meta name="viewport" content="user-scalable=no, initial-scale=0.75, maximum-scale=1, minimum-scale=0.75, width=device-width, height=device-height, target-densitydpi=device-dpi" /> But it shrinks too small on ultra high resolution devices like Samsung Galaxy S4 (1080x1920, 5.0 inches ~441 ppi pixel density), that user may need a magnifying glass to read it. How do I tweak the viewport so that it looks about the same size across all phone/tablet

Phonegap Screenshot plugin in Cordova 2.0.0

自闭症网瘾萝莉.ら 提交于 2019-12-02 15:03:09
问题 I have set up the screenshot plugin from github, located here: https://github.com/phonegap/phonegap-plugins/tree/master/Android/Screenshot I set it up as instructed and with 1.8.1 of cordova. It worked and the screenshot was saved to the phone. However it fails with cordova 2.0.0. Screenshot.java code: https://github.com/phonegap/phonegap-plugins/blob/master/Android/Screenshot/src/org/apache/cordova/Screenshot.java Screenshot.js code: https://github.com/phonegap/phonegap-plugins/blob/master

Issues with Bindings: Calling base method on binding class calls override method. Leads to infinite recursion

家住魔仙堡 提交于 2019-12-02 11:02:00
I'm working on a MonoTouch project that uses Cordova. I created a binding for Cordova ( based on the one created by Scott Blomquist ). I have been able to instantiate the classes fairly well without fail. When I try to extend them however, I run into issues. For example, if I merely try extend the CDVViewController, without even overriding anything, when we get to the code that instantiates this extended class, the system quietly exits with no error messages, and the following exit lines. The program 'Mono' has exited with code 0 (0x0). The program '[5600] ***.vshost.exe: Managed (v4.0.30319)'