Cordova functions not working in mobile widget

0
Hi all! I have successfully setup my mobile app with phonegap for android and it runs nicely in the Android emulator. One thing that does not work is the access to the cordova functions from within a custom widget that I am writing. Is there something one has to do in order to be able to call the cordova functions from your custom widget?
asked
2 answers
0

Can you tell us a little bit more what and why it is not working? Do you get any errors in firebug/chrome dvt?

answered
0

I am trying to create a new Media object in my custom widget, but getting this error :

10-12 14:28:28.191: D/CordovaLog(620): Error in error callback: Media5 = TypeError: Object #<Object> has no method 'log'
10-12 14:28:28.211: D/CordovaLog(620): file:///android_asset/www/cordova-2.0.0.js: Line 283 : Error in error callback: Media5 = TypeError: Object #<Object> has no method 'log'
10-12 14:28:28.211: I/Web Console(620): Error in error callback: Media5 = TypeError: Object #<Object> has no method 'log' at file:///android_asset/www/cordova-2.0.0.js:283
answered