Applause and phone calls on Android

My problem is developing PhoneGap and Android using the Eclipse Applaud plugin. I downloaded and installed the Adaud plugin successfully. I can create a new project using the Applaud wizard (using the Eclipse toolbar icon), and the demo program runs on the device. However, when I overwrite existing html and js files (only main.js, not phonegap.js) and then create them on the device, the non-device functionality works fine (clicks / ui update / etc button), but PhoneGap commands like (device.version / device.platform / etc) does not seem to work.

I tried connecting this to the onDeviceReady event, and also making sure the .jar library is on, but I still have the same problem. Therefore, I think, my question is: when creating a PhoneGap solution using the Applause application, is it necessary to compile and the Eclipse library, for example PhoneGap? and if so, how could someone do such things?

Error Log:

01-24 14:59:44.567: W/KeyCharacterMap(5453): No keyboard for id 131074

01-24 14:59:44.567: W/KeyCharacterMap(5453): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

01-24 14:59:59.917: I/Web Console(5453): Failed to run constructor: TypeError: object is not a function at file:///android_asset/www/resources/js/phonegap-1.3.0.js:210

01-24 14:59:59.927: I/Web Console(5453): Failed to run constructor: TypeError: Cannot read property 'capture' of undefined at file:///android_asset/www/resources/js/phonegap-1.3.0.js:210

01-24 14:59:59.927: I/Database(5453): sqlite returned: error code = 14, msg = cannot open file at source line 25467

01-24 15:00:00.057: D/dalvikvm(5453): GC_CONCURRENT freed 1185K, 55% free 3188K/6983K, external 2630K/2814K, paused 2ms+3ms
+5
source share
2 answers

, - , ( , ). , , ; (-, / ..) . , js , (, , ..), index.html, .

:

var Device = {
    // Returns the Device Name as a string.
    Name: function() {
        return window.device.name;
    }
};

, ( ). , . , , , ( ) . Device.Name() ( , /) PhoneGap, js .

"" "" . , , .

+3

, , :

AppLaud phonegap.jar , , .

" " ( " PhoneGap" ), phonegap.jar . PhoneGap github, phonegap.jar , PhoneGap Java . PhoneGap.

, , , - index.html, , (...}. js. ghostCoder , , .

+1

All Articles