Commit Graph

297 Commits

Author SHA1 Message Date
macdonst 9aa1cd756a Refactor out the Java casting code
When we return JSON to the Java side it does not have the proper methods such as Contact.save() so we need to cast the JSON to the correct JS object. This used to be done from the Java layer calling the right method to cast the JSON. In this new approach the JavaScript layer will no what needs to be cast and call it's own internal function to do the cast.
2012-02-09 16:41:26 -05:00
macdonst d8d7c29afe Adding com.phonegap.api stubs for legacy user created plugins 2012-02-06 10:04:02 -05:00
macdonst 664a061d10 Rename to Cordova 2012-02-03 10:38:40 -05:00
macdonst 3bff8aec88 Tagging 1.4.1 2012-02-01 15:35:57 -05:00
macdonst e64cb2fc4f Removing deprecated methods from Device
Device.overrideBackButton
Device.exitApp
Device.resetBackButton
2012-02-01 10:46:27 -05:00
macdonst c5ada0f09f Deprecating navigator.app.overrideBackbutton
Everyone should be using:

    document.addEventListener("backbutton", yourCallbackFunction, false);
2012-01-31 15:02:11 -05:00
macdonst 44edcbb3cf Updating version to 1.4.0 2012-01-30 16:07:20 -05:00
macdonst 3fd2f590fd Updating version to 1.4.0rc1 2012-01-27 12:06:26 -05:00
macdonst 6e82ec4152 Allow internal SD Card to be used as storage 2012-01-25 16:34:46 -05:00
macdonst 1d5af102c7 Camera default destination should be FILE_URI 2012-01-05 03:29:55 +08:00
macdonst 1511183dfd Tagging 1.3.0 2011-12-16 13:29:15 -05:00
macdonst a640804897 Tagging to 1.3.0rc2 2011-12-13 09:41:54 -05:00
macdonst 4b9e50146e Tagging to 1.3.0rc1 2011-12-05 11:27:08 -05:00
macdonst 29001eeb3a Merge pull request #42 from aflx/download
added download() to the filetransfer
2011-12-01 08:20:04 -08:00
Alexander Keller f387720e54 FileTransfer returns JSONObject with code, source and target for upload and download 2011-11-30 09:15:01 +01:00
macdonst e02322b66b Remove addWhiteList from public API 2011-11-29 03:47:49 +08:00
Alexander Keller 8904c67fb5 added download() to the filetransfer 2011-11-26 18:16:44 +01:00
macdonst 63ae953432 Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it 2011-11-23 03:50:26 +08:00
macdonst 5406d6c98f Linting the JS code 2011-11-17 04:38:11 +08:00
Bryce Curtis 0caca9ae55 Remove old code. 2011-11-09 15:46:45 -06:00
macdonst db0a1919f3 Remove PhoneGap.stringify, replace with JSON.stringify
Since we don't support Android 1.5/1.6 anymore we don't need to check to see if JSON.stringify is around as it is included in Android 2.1+. By removing this check for JSON.stringify we remove two conditional checks on each call to PhoneGap.exec.

As well we get rid of 60 lines of code which are currently bloating phonegap.js.base.
2011-11-04 13:40:52 -07:00
Bryce Curtis 141b8355ac Don't fire resume upon init - only when returning from background.
Lifecycle behavior for PhoneGap app:
window.onload = loading html page
pause = html page entering background (not displayed)
resume = html page entering foreground (displayed)
window.onunload = leaving html page
2011-11-04 13:40:51 -07:00
Joe Bowser 7244a5a727 Merge branch 'master' of github.com:callback/callback-android 2011-11-02 13:10:50 -07:00
Bryce Curtis e4a5000f9e This is an informative message, not an error message. It is normal to get this when leaving a page. 2011-10-31 20:39:42 -05:00
Bryce Curtis fd07cfc461 Update version to 1.2.0. 2011-10-31 17:29:08 -05:00
Bryce Curtis d1ec1f7693 Don't fire resume at app startup. 2011-10-31 14:18:32 -05:00
Joe Bowser a35a33c05e Adding the Apache Headers 2011-10-27 14:04:39 -07:00
Bryce Curtis bd7ed19b52 Load multi-page apps in same webview and update pause/resume for consistency.
1. Make handling of multi-page apps consistent with iOS and Blackberry to load into same webview (instead of starting a new activity).

2. Make lifecycle consistent.  pause is called when going into background, resume is called when coming into foreground.  It is no longer called when loading or leaving an HTML page.  Use window.onload/onunload to get these notifications.
2011-10-21 16:29:55 -05:00
macdonst 551f0f7e4a Normalize MediaError's with iOS 2011-10-19 15:22:50 -04:00
macdonst 369d140040 Return MediaError object instead of value 2011-10-19 15:06:36 -04:00
Bryce Curtis fe3e7041b7 Don't override history.back since jQuery also does it. 2011-10-06 22:21:09 -05:00
macdonst 804ac714ae Updating version number to 1.1.0 2011-10-01 03:57:06 +08:00
macdonst 24ad506da5 Fixing JavaScript comparrison issues 2011-09-30 14:26:48 -04:00
macdonst 80695ec5e4 Fix issue with DATA_URL and refactor code 2011-09-30 11:30:04 -04:00
macdonst 0d57404cf1 Merge pull request #249 from macdonst/gallery
Adding video select to getPicture to line up with iOS
2011-09-29 12:13:44 -07:00
macdonst 67393c516e Adding video select to getPicture to line up with iOS 2011-09-29 14:49:34 -04:00
Bryce Curtis ebb9f09168 Improve closing an HTML page and returning to previous page. 2011-09-29 11:02:54 -05:00
macdonst 821eb24a54 Fix for Issue #228: Align Compass support with iOS 2011-09-28 17:35:50 -04:00
Bryce Curtis 80df4a8fb2 White list support. Pull request https://github.com/phonegap/phonegap-android/pull/211 from imhotep would not merge, so combined it with enhancements for this commit. 2011-09-26 10:58:41 -05:00
macdonst bb777c096c Fix for Issue #172: Out of memory when uploading video using FileTransfer on Android 2011-09-24 00:15:59 +08:00
macdonst 362841008a fix for Issue #229: Deprecate FileMgr code in file.js 2011-09-13 16:57:32 -04:00
macdonst 8d35b1aeef Fix for Issue #210: devready event never fires if we can't get network connection info 2011-08-27 04:16:11 +08:00
Bryce Curtis 8a4737947b Remove old phonegap.js file. 2011-08-22 09:50:42 -05:00
macdonst 7e2044c5b4 Merge pull request #195 from m00sey/master
Expose Volume control
2011-08-17 12:45:09 -07:00
Bryce Curtis 361a7aacc5 Issue #194: Resolve flashes between screen, and enable setting of background color & optional loading dialog. 2011-08-11 16:21:22 -05:00
Bryce Curtis 8d46d33675 Implementation of Battery Event Spec. (http://dev.w3.org/2009/dap/system-info/battery-status.html) 2011-08-12 04:31:43 +08:00
Bryce Curtis a735a631f6 Formalize document and window event listeners and allow plugins to override eventListeners. 2011-08-12 04:31:43 +08:00
Kevin Griffin ad8086fab5 exposing volume control 2011-08-09 23:18:01 -04:00
macdonst 004453b03f Upping version to 1.0.0 2011-07-29 12:01:46 +08:00
macdonst e28458869f Issue #185: Fix mis-spelling in file.js 2011-07-29 11:56:29 +08:00