Andrew Grieve
e5b0157971
Set VERSION to 3.1.0 (via coho)
2013-10-02 12:40:50 -04:00
Andrew Grieve
847b6fe7c9
Update JS snapshot to version 3.1.0 (via coho)
2013-10-02 12:40:49 -04:00
Joe Bowser
133c2dc902
CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed
2013-09-30 16:01:59 -07:00
Andrew Grieve
5592765f04
[CB-4892] Fix create script only escaping the first space instead of all spaces.
...
(cherry picked from commit 2d88a726b7 )
2013-09-23 10:17:14 +02:00
Andrew Grieve
4441215e4c
Fix update script to clobber cordova.js file (missing -f)
2013-09-19 15:48:15 -04:00
Andrew Grieve
734d4d3147
Add missing copyright header for Whitelist.java.
...
(cherry picked from commit b7ede8f9ba )
2013-09-17 14:21:20 -04:00
Andrew Grieve
d269b54aad
[CB-4832] Add 3.1.0 RELEASENOTES.md
...
(cherry picked from commit 15f36cc19d )
2013-09-17 13:09:24 -04:00
Andrew Grieve
495ca45f76
Set VERSION to 3.1.0-rc1 (via coho)
2013-09-17 11:03:50 -04:00
Andrew Grieve
42a6e7972a
Update JS snapshot to version 3.1.0-rc1 (via coho)
2013-09-17 11:03:50 -04:00
Joe Bowser
52d0a4fa78
Updating Android Version to RC1
2013-09-16 15:21:10 -07:00
Andrew Grieve
1d1cdb5ea4
Always have create script rebuild jar when on a dev version
2013-09-16 14:25:12 -04:00
Andrew Grieve
34bdef9c45
[CB-4817] Remove unused assets in project template.
2013-09-13 23:07:41 -04:00
Andrew Grieve
cad673f8cd
[CB-4817] Avoid generating unused files in create script
...
by using "android update project" instead of "android create project"
2013-09-13 22:49:15 -04:00
Andrew Grieve
7c446b222d
[CB-3542] Convert update script to be node-based.
2013-09-13 22:49:15 -04:00
Andrew Grieve
1bd0f8fcf4
[CB-3542] Delete old ant-based bin/create.xml file.
2013-09-13 22:49:14 -04:00
Andrew Grieve
dd3c261ba2
[CB-3542] Only update framework/ project when building the jar.
...
No need to do it during every check_reqs.
This also extracts the jar building into a helper function.
2013-09-13 22:49:14 -04:00
Andrew Grieve
70cc711ec1
[CB-3542] Delete custom replaceInFile with shelljs.sed().
2013-09-13 22:07:38 -04:00
Andrew Grieve
485f2ee923
[CB-3542] Fail create script if a copy fails.
2013-09-13 22:07:35 -04:00
Andrew Grieve
129be6e476
[CB-3542] Delete extra message when check_reqs fails.
...
check_reqs already outputs a message.
2013-09-13 22:07:31 -04:00
Andrew Grieve
c08b64efb3
[CB-3542] Fix create script's check for whether cordova.jar exists.
2013-09-13 22:07:23 -04:00
Andrew Grieve
f4a0f55b13
Fail fast in create script if package name is not com.foo.bar.
2013-09-13 16:08:45 -04:00
Joe Bowser
39d32bcb5b
CB-4620: Throwing this over the fence, since there is a problem actually in the wild here
2013-09-11 15:02:00 -07:00
Andrew Grieve
3351fdbc74
Restore deleted classes (FileHelper, etc) and deprecate them instead.
...
The classes are:
[CB-4766] JSONUtils.java
[CB-4765] ExifHelper.java
[CB-4764] DirectoryManager.java
[CB-4763] FileHelper.java
2013-09-11 11:13:57 -04:00
Andrew Grieve
7be1f018aa
[CB-3542] Commit bin/node_modules so that it doesn't need to be npm installed.
2013-09-10 16:58:28 -04:00
Andrew Grieve
437daa368a
[CB-4782] Convert ApplicationInfo.java -> appinfo.js
2013-09-10 16:32:42 -04:00
Andrew Grieve
3df09eacf2
Remove out-of-date create script tests.
...
They have clearly not been run in a long time. We verify create script
output manually during releases, and I think that's more meaningful.
2013-09-10 15:25:01 -04:00
Andrew Grieve
483dd3435a
[CB-4769] Fix create script failure due to deleted version.js file
2013-09-10 09:21:57 -04:00
Andrew Grieve
2b0aa03380
[CB-4766] Delete JSONUtils.java
2013-09-09 16:47:55 -04:00
Andrew Grieve
fc7261b199
[CB-4765] Move ExifHelper.java out of core (and into camera plugin)
2013-09-09 16:17:53 -04:00
Andrew Grieve
3200c50b9f
[CB-4764] Delete DirectoryManager.java
2013-09-09 16:11:41 -04:00
Andrew Grieve
862a8eab8d
[CB-4763] Delete FileHelper.java, Move getMimeType() into CordovaResourceApi.
2013-09-09 15:43:04 -04:00
Andrew Grieve
1bfcc92677
Make version in version script easier to replace by coho
2013-09-09 15:37:00 -04:00
Andrew Grieve
80a09b8f36
[CB-4725] Add CordovaWebView.CORDOVA_VERSION constant
...
This used to be available as Device.cordovaVersion, but was broken in 3.0.
2013-09-09 11:22:18 -04:00
Joe Bowser
5f7ce4b868
Reverting CB-3949: Squeay wheel gets the grease
2013-08-28 14:42:23 -07:00
Joe Bowser
412d97fa0c
Incremeting version check for Android 4.3 API Level 18
2013-08-28 14:41:42 -07:00
Benn Mapes
57bed98cf1
Added commit 150cdfd, override arg for project template
...
Conflicts:
bin/create
2013-08-28 14:04:43 -07:00
Benn Mapes
b1d8788506
Fix for cli with new node scripts
2013-08-27 11:41:54 -07:00
Benn Mapes
1bd4900981
[CB-3542] rewrote cli tooling scripts in node
2013-08-26 14:45:28 -07:00
Ian Clelland
e6812f18a0
Allow CordovaChromeClient subclasses access to CordovaInterface and CordovaWebView members
2013-08-23 14:37:36 -04:00
Ian Clelland
f604988181
Refactor CordovaActivity.init so that subclasses can easily override factory methods for webview objects
2013-08-23 13:04:19 -04:00
Ian Clelland
150cdfd3ac
[CB-4652] Allow default project template to be overridden on create
2013-08-23 13:04:19 -04:00
Joe Bowser
f42b34d6b4
CB-4318: We have docs, this doesn't need to be in the comments
2013-08-20 16:29:31 -07:00
Andrew Grieve
166b35bc6c
Tweak the online bridge to not send excess online events.
...
It does so by having the JS tell it when online events have fired.
2013-08-15 15:55:08 -04:00
Tomaz Muraus
121b74fa0c
[CB-4495] Modify start-emulator script to exit immediately on a fatal emulator error.
2013-08-15 11:46:50 -04:00
Andrew Grieve
5451320350
Log WebView IOExceptions only when they are not 404s
2013-08-15 11:33:38 -04:00
Andrew Grieve
fe45b29ef6
Use a higher threshold for slow exec() warnings when debugger is attached.
2013-08-13 15:08:54 -04:00
Andrew Grieve
4e1aa8aa59
Fix data URI decoding in CordovaResourceApi
...
It was not URI-decoding first, and so was broken for non-base64-encoded
URIs.
2013-08-13 14:11:40 -04:00
Ian Clelland
fa366eb7a8
[CB-4140] Fix master branch cordova version to 3.1.0-dev
2013-08-09 10:45:39 -04:00
Andrew Grieve
e086a706ba
Remove plugin references in test project's config.xml
2013-08-02 13:19:14 -04:00
Benn Mapes
53b8da8198
[CB-4466] fixed jscript check_reqs to get target from project.properties
2013-08-01 17:57:58 -07:00
Fil Maj
c2c5f71018
[CB-4463] Updated bin/check_reqs to looks for android-18 target.Also fixed an issue in unix version of script that would invoke the android command if an error occurred.
2013-07-30 17:14:46 -07:00
Joe Bowser
2bdc849c2b
CB-3819: Implemented Feature
2013-07-30 15:03:25 -07:00
Max Woghiren
7cbe8f5843
[CB-4013] Fixed loadUrlTimeoutValue preference.
2013-07-30 12:21:50 -04:00
Sharif Ahmed
810df61049
[CB-4410] Fixed @param mismatching
2013-07-30 11:21:02 -04:00
Joe Bowser
5c38101a9e
Upgrading project to Android 4.3
2013-07-29 11:30:41 -07:00
Fil Maj
b4236b9783
[CB-4198] bin/create script should be better at handling non-word characters in activity name. Patched windows script as well.
2013-07-25 10:33:05 -07:00
Fil Maj
980c4699b0
[CB-4198] bin/create should handle spaces in activity better.
2013-07-24 21:21:41 -07:00
Ian Clelland
463c7b5027
[CB-4096] Implemente new unified whitelist for android
2013-07-23 11:23:14 -04:00
David Kemp
7c7230dd35
[CB-4280] handle invalid bridge mode request
2013-07-22 18:15:09 -04:00
Andrew Grieve
b915aafb5b
[CB-3384] Fix thread assertion when plugins remap URIs
2013-07-18 01:38:47 -04:00
David Kemp
8202ab83fa
[CB-4133] Add main thread warning for plugins that run too long
2013-07-16 21:19:11 -04:00
Joe Bowser
2fe6d14e56
We can remove the plugins tag now. Tested plugman, it's all good.
2013-07-16 15:00:28 -07:00
Ian Clelland
7ee285342f
Update cordova.js to latest (3.0.0-rc1) version
2013-07-16 14:48:48 -04:00
Andrew Grieve
6fe18ae0ab
[CB-3384] Use the ExposedJsApi to detect webCore thread instead of IceCreamCordovaWebViewClient.
...
Also removes a debug log statement.
2013-07-16 09:39:47 -04:00
Joe Bowser
5c4fa213d1
CB-4230: We test Cordova, not jQuery Mobile
2013-07-15 14:08:54 -07:00
Joe Bowser
1895d8ac9e
CB-3944: Removing activity that doesn't exist
2013-07-15 13:54:00 -07:00
Joe Bowser
7f5f87ac72
CB-3957: The new activity wasn't added to the Android Manifest
2013-07-15 13:51:27 -07:00
ldeluca
0244341ac5
moved the backgroundcolor class to correct classpath
2013-07-15 13:46:18 -07:00
ldeluca
ae96d5678b
changes the test name to make it auto run
2013-07-15 13:46:17 -07:00
denis
a9ebf50b86
Prevent NPE in case webview is lately initialized
2013-07-15 13:34:55 -07:00
Andrew Grieve
8d8cbf6e28
Set minSdkVersion to 8 for DroidGap project
2013-07-15 15:22:51 -04:00
Andrew Grieve
77e9092108
[CB-3384] Reworked UriResolver into CordovaResourceApi.
...
Changes were made after trying to use the API for Camera, FileTransfer, Media.
The main difference is separating the concept of URI remapping from the read/write helpers.
2013-07-15 15:18:39 -04:00
Fil Maj
210d7c76e6
[CB-3605] Updated README to reflect changes in command-line scripts for cordova-android.
2013-07-15 11:27:05 -07:00
Fil Maj
01ad3f447a
[CB-3605] removing unused package.json
2013-07-12 10:27:27 -07:00
Ian Clelland
546948cb8c
[CB-4154] Set default Android target to android-17
...
This is done in the default project.properties file, as well as the create
script for new projects.
2013-07-11 22:26:15 -04:00
Joe Bowser
37c20c3f67
Updating cordova.js for unit tests
2013-07-11 16:26:12 -07:00
Joe Bowser
22daea11e1
Accidentally committed Blacklist Test, removing this broken test case
2013-07-11 16:25:38 -07:00
Joe Bowser
792aa78aec
Updating imports on all the tests
2013-07-11 15:04:24 -07:00
Joe Bowser
5cf95cfa01
CB-4156: Adding back the App plugin, since this is required
2013-07-11 14:00:50 -07:00
Ian Clelland
fff956304f
[CB-4140] Fix master branch cordova version to DEV
2013-07-11 14:11:37 -04:00
Ian Clelland
3ae28b3085
[CB-4151] Extract whitelist from Config class for testability
2013-07-11 14:11:37 -04:00
Joe Bowser
b5df9dd88e
CB-3724: Removing the file exceptions
2013-07-11 10:21:40 -07:00
Max Woghiren
b6a01a203a
[CB-4103] Made config parameters case-insensitive.
...
For consistency with other platforms (and for readability), UpperCamelCasing is used by default in the code.
2013-07-10 17:27:13 -04:00
Andrew Grieve
990d91360d
[CB-3384] Add a length getter for UriResolver. Change from interface -> abstract class.
...
Thinking here is that we can maintain compatibility going forward with a
base class as opposed to interface by having new methods on it have
default implementations.
2013-07-10 15:13:03 -04:00
Andrew Grieve
b5c3ac605a
[CB-4038] - Remove o.a.c.api namespace
2013-07-10 09:44:54 -04:00
denis
55865a4f1d
Let subclasses override focus behavior
...
Signed-off-by: Joe Bowser <bowserj@apache.org >
2013-07-09 15:45:41 -07:00
Joe Bowser
ff27ad332b
CB-3172: Killing the deprecation notice in Android, waiting for plugman fixes before removing the empty tags
2013-07-09 15:13:15 -07:00
Joe Bowser
85bad87c1c
CB-4139: Seriously, we didn't deprecate this for a year? WTF?
2013-07-09 15:10:42 -07:00
Ian Clelland
f7014f14df
Update cordova.js -- includes new Binary bridge, supporting Android 4.0
2013-07-09 16:45:25 -04:00
Andrew Grieve
99341bce29
[CB-3384] Make UriResolver assert that IO is not on the UI nor WebCore threads.
2013-07-05 11:44:38 -04:00
bennmapes
bf6291020a
Added 'log' back to windows cli tooling
2013-07-03 10:52:13 -07:00
Andrew Grieve
79829f6209
[CB-4038] Move non-deprecated classes from the api package into the main package.
2013-06-28 21:53:09 -04:00
Andrew Grieve
a97487bcec
[CB-4048] Merge branch '3.0.0' into master
2013-06-28 11:59:54 -04:00
Andrew Grieve
892ffc8ce4
[CB-3384] Rewrite of DataResource into UriResolver + UriResolvers
...
Includes unit tests woot!
Note that this remove CordovaPlugin.shouldInterceptRequest(). Should be
fine since this method was introduced only a couple of releases ago, was
never documented, and afaict was only used by the Chrome Cordova plugins.
2013-06-27 21:55:28 -04:00
Joe Bowser
fbf7f1c3f9
Fixes to the update command so it doesn't delete anything other than build artifacts
2013-06-27 12:59:49 -07:00
Andrew Grieve
3b7e0504e8
Remove accidentally checked in log statement "running exec normally"
...
(cherry picked from commit 68bc57ae85 )
2013-06-26 14:23:50 -04:00
Andrew Grieve
68bc57ae85
Remove accidentally checked in log statement "running exec normally"
2013-06-26 14:22:41 -04:00
Andrew Grieve
f42e5f66fd
Explicitly print exceptions that occur within ExposedJsApi.
...
Before they trickled into JNI and the stack traces were lost.
(cherry picked from commit 10d31ea0a3 )
2013-06-26 14:21:48 -04:00
Andrew Grieve
10d31ea0a3
Explicitly print exceptions that occur within ExposedJsApi.
...
Before they trickled into JNI and the stack traces were lost.
2013-06-26 14:20:45 -04:00
Don Coleman
e64ebdfaee
[CB-3998] video duration is an int
2013-06-25 14:35:23 -04:00
Joe Bowser
7e15ff930d
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-06-24 11:31:47 -07:00
Joe Bowser
b83610a653
CB-3949: Adding code to mitigate broken intents with the application installer
2013-06-24 11:31:32 -07:00
Jeffrey Willms
16e08384c0
[CB-3927] Fix start-up race condition that could cause exec() responses to be dropped.
...
Requires a change to the JS as well.
(cherry picked from commit 9cb14838e8 )
2013-06-21 18:31:57 -04:00
Jeffrey Willms
9cb14838e8
[CB-3927] Fix start-up race condition that could cause exec() responses to be dropped.
...
Requires a change to the JS as well.
2013-06-21 18:30:50 -04:00
Fil Maj
6fe66ad79c
Accidentally commented "build" out when running ./run --emulator. Whoops D:
2013-06-21 14:23:40 -07:00
Andrew Grieve
f78b444ed1
Remove PluginManager.exec's return value (unused).
...
It's not only not used, but when it was used was messing up the
DISABLE_EXEC_CHAINING flag.
(cherry picked from commit 9946d15f23 )
2013-06-20 22:22:59 -04:00
Andrew Grieve
9946d15f23
Remove PluginManager.exec's return value (unused).
...
It's not only not used, but when it was used was messing up the
DISABLE_EXEC_CHAINING flag.
2013-06-20 22:20:58 -04:00
Joe Bowser
b032dcca16
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-06-20 16:33:17 -07:00
Joe Bowser
01d6ae55a4
CB-3854: Added support for wildcard. This probably could be improved, but it does work
2013-06-20 16:33:14 -07:00
Joe Bowser
f1b377bf07
CB-3854: Added support for wildcard. This probably could be improved, but it does work
2013-06-20 16:32:18 -07:00
Andrew Grieve
03c5208d47
Update JS snapshot to version 2.9.0rc1 (via coho)
2013-06-20 15:21:58 -04:00
Joe Bowser
3ace9348f6
Merge branch 'CB-3932' of git://github.com/angelaf/cordova-android
2013-06-19 16:03:18 -07:00
Angela Fowler
3a14017729
CB-3932 Remove baseUrl comment in handleDestroy method made redundant by CB-3766
2013-06-19 15:22:42 +10:00
Steven Gill
e726c0d60b
updated cordova.js
2013-06-18 17:01:56 -07:00
Joe Bowser
98b971b4de
CB-3902: Explicitly add market URIs to CordovaWebViewClient so this always works, not just sometimes
2013-06-18 16:20:14 -07:00
Benn Mapes
4ec3d6d064
[CB-3625] [CB-3338] updated windows cli scripts and added version option
2013-06-18 14:56:11 -07:00
Tim Kim
c531d97ed2
Need to remove reference to device plugin in template
2013-06-18 14:26:11 -07:00
Joe Bowser
8c9e416175
CB-3784: Patches are always welcome
2013-06-18 13:14:30 -07:00
Andrew Grieve
431f3337d9
Update JS snapshot to version 2.9.0rc1
2013-06-18 13:49:19 -04:00
Fil Maj
63ab701685
updated js from latest cordova-js 3.0
2013-06-17 16:53:04 -07:00
Joe Bowser
c9b164b983
Removing bench from the README
2013-06-17 15:49:40 -07:00
Joe Bowser
54d32ad910
CB-3784: Nit-picking
2013-06-17 15:45:56 -07:00
Steven Gill
c8140bad19
removed device.java
2013-06-17 15:27:02 -07:00
Fil Maj
2e5b6bce55
updated cordova.js to remove dependency on network status plugin.
2013-06-17 12:08:10 -07:00
Fil Maj
5ee178789f
Axed all permissions from template manifest except for INTERNET. Bumped minSDkVersion to 10.
2013-06-17 11:23:17 -07:00
Fil Maj
0efd9fcac0
[CB-3627] start-emulator now properly starts, waits for and unlocks an emulator, consumed by run as well.
2013-06-14 17:22:57 -07:00
Joe Bowser
c0a39570c9
CB-2391: False positive, this affects 4.2.2, not ICS. Bug breaks before we get to this point. :(
2013-06-14 17:03:40 -07:00
Joe Bowser
9ac4b570e6
CB-2391: Fix for colons crashing the WebView on ICS, tested on Samsung Galaxy S2
2013-06-14 16:55:47 -07:00
Joe Bowser
6689827278
Fixing the config.xml on tests to use the ActivityPlugin
2013-06-14 15:31:23 -07:00
Joe Bowser
86a24ebd0f
Updating the JS used in the tests
2013-06-14 15:31:03 -07:00
Joe Bowser
d2a7d18067
Fixed bad comment, it's all dying at the same time
2013-06-14 15:30:24 -07:00
Joe Bowser
b679672c0e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-06-14 15:29:51 -07:00
Joe Bowser
90f83db9c9
CB-3504: Fixing issue with the use of WebResourceResponse on pre-Honeycomb devices.
2013-06-14 15:29:30 -07:00
Fil Maj
32d74f8623
correct refs to various lib scripts in run.
2013-06-14 14:48:23 -07:00
Fil Maj
53cc381c76
removing unused script anymore from create.
2013-06-14 14:44:26 -07:00
hermwong
d845736948
removed file system access permission
2013-06-13 16:59:54 -07:00
Fil Maj
add107583f
Proper modularization of bash scripts for [CB-3627], but not solved yet. wait_for_emulator does not work atm
2013-06-13 16:46:21 -07:00
hermwong
dd837f7130
removed vibration permission
2013-06-13 16:31:27 -07:00
Steven Gill
12ebadbb0f
Merge branch '3.0.0' of https://git-wip-us.apache.org/repos/asf/cordova-android into 3.0.0
2013-06-13 15:56:00 -07:00
Steven Gill
e30bc6b6e4
updated cordovajs
2013-06-13 15:55:48 -07:00
Tim Kim
9288158226
Made some functions in DirectoryManager public
2013-06-13 15:24:01 -07:00
Steven Gill
3a55991480
updated js
2013-06-13 14:54:30 -07:00
Steven Gill
9e44596db7
updated directory manager
2013-06-13 14:39:08 -07:00
Fil Maj
e86d811fc0
[CB-3626] fix to start-emulator: if no id is provided, should start the first emulator
2013-06-13 12:44:43 -07:00
Ian Clelland
5cff144a22
[CB-2406] Add support for binary data in FileWriter.write()
2013-06-12 13:33:03 -04:00
Joe Bowser
a021adb7fd
CB-3766: Javascript uses loadUrl, not loadUrlIntoView, which is only for documents
2013-06-12 09:33:52 -07:00
Joe Bowser
e2a090bbba
Don't call loadUrlIntoView on the actvity
2013-06-12 09:18:10 -07:00
Joe Bowser
a70c8536f9
Re-adding the Plugin.java shim for now. This will remain a 2.x-only feature
2013-06-11 10:38:42 -07:00
Steven Gill
9aaa152b9a
updated from master
2013-06-10 17:15:05 -07:00
hermwong
a2b8ebf57e
Merge branch '3.0.0' of https://git-wip-us.apache.org/repos/asf/cordova-android into 3.0.0
2013-06-10 16:21:32 -07:00
hermwong
b3fe47985a
removed android.permission.ACCESS_COARSE_LOCATION and android.permission.ACCESS_FINE_LOCATION from AndroidManifest.xml for PBR
2013-06-10 16:14:56 -07:00
Joe Bowser
e52d4fc003
CB-3736: Cleaning up code so that this makes more sense. Variables are OK
2013-06-07 16:43:53 -07:00
Joe Bowser
3753e3f353
Trying to get DataResource reverted so that we don't have to worry about this blowing up while we're breaking things out. DataResource should be on a branch until it's ready!
2013-06-06 14:35:12 -07:00
Andrew Grieve
979d8e66f2
Revert "Added "DataResource" - allows many plugins to intercept a single request"
...
This reverts commit 62c3e46529 .
Reverting all DataResource changes for the 2.8.0 release.
Conflicts:
framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
framework/src/org/apache/cordova/api/DataResource.java
framework/src/org/apache/cordova/api/DataResourceContext.java
2013-06-06 14:14:14 -07:00
Andrew Grieve
c5b37cc7e7
Revert "Changed all usages of FileHelper to use the new DataResource mechanism."
...
This reverts commit 867358ea81 .
Reverting all DataResource changes for the 2.8.0 release.
Conflicts:
framework/src/org/apache/cordova/FileUtils.java
2013-06-06 14:12:44 -07:00
Andrew Grieve
e3989bcc2b
Revert "DataRequest code cleaned up."
...
This reverts commit a001d8cfb7 .
Reverting all DataResource changes for the 2.8.0 release.
Conflicts:
framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
2013-06-06 14:10:13 -07:00
Andrew Grieve
2f9c512b59
Revert "DataResource bugfix WebviewClient logs error for http urls."
...
This reverts commit 8f91ebf194 .
Reverting all DataResource changes for the 2.8.0 release.
Conflicts:
framework/src/org/apache/cordova/FileHelper.java
framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
2013-06-06 14:08:52 -07:00
Andrew Grieve
43172cf530
Revert "CB-3496: Fixed streaming audio, this is pretty important for mobile spec"
...
This reverts commit aa81966e0b .
Going to revert all DataResource changes for on the 2.8.x branch.
2013-06-06 14:06:54 -07:00
Braden Shepherdson
e518eacbde
Replace naive relative path in version script with proper one
2013-06-06 12:00:33 -04:00
David Kemp
c3b8b279b0
CB-3420: add hidden option to InAppBrowser
2013-06-05 10:19:56 -04:00
Joe Bowser
0dd4951be7
Forgot to update this so that it doesn't destroy someone's project, FAIL
2013-06-04 14:28:16 -07:00
Joe Bowser
12d06bd727
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-06-03 14:45:49 -07:00
Joe Bowser
bc52345f05
CB-3548: Throwing this one over the fence, but this change appears sane. We should just return false.
2013-06-03 14:45:27 -07:00
Ian Clelland
c28a313374
[CB-3569] Allow FileTransfer.upload to reference android_assets
2013-06-03 16:14:22 -04:00
Ian Clelland
c509c8e7e5
[CB-3563] Update references to DroidGap in code comments
2013-05-31 11:20:33 -04:00
Ian Clelland
fb89cef256
[CB-3563] Replace instances of DroidGap in log messages with more appropriate symbols
2013-05-31 11:16:09 -04:00
Ian Clelland
9ac9fd4fe9
[CB-3563] Change default logging tag from DroidGap to CordovaActivity
2013-05-31 10:54:40 -04:00
Ian Clelland
dfb89df4f1
[CB-3561] Update documentation comments to match implementation
...
Affects CordovaInterface and CordovaActivity. There should probably be a
concerted effort to update this across the entire project.
2013-05-31 10:54:40 -04:00
Andrew Grieve
0e572aea36
[CB-3340] Add copying of the version script to bin/create
2013-05-29 10:23:00 -04:00
Andrew Grieve
420cee4ee6
[CB-3468] Add missing license headers found by RAT
2013-05-28 16:43:38 -04:00
Ian Clelland
403297d967
CB-3523: Fix NPE on app restart with outstanding callback
2013-05-28 15:11:25 -04:00
Ian Clelland
abba254a38
CB-3358: Remove one more reference to commons-codec
2013-05-28 15:09:21 -04:00
Shravan Narayan
048107e378
CB-3384 Bugfix - Non null Mimetype is not required for WebResourceResponse
2013-05-28 13:58:39 -04:00
David Kemp
78efe2a960
CB-3358: Change Commons-codec:base64 to Android:Base64
2013-05-27 22:25:23 -04:00
Andrew Grieve
8077091b34
Update JS snapshot to version 2.8.0rc1
2013-05-27 22:15:49 -04:00
Joe Bowser
683e32cffb
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-05-24 11:29:49 -07:00
Joe Bowser
1c9d76e637
CB-3496: Fixed streaming audio, this is pretty important for mobile spec
2013-05-24 11:29:28 -07:00
Steven Gill
98d9901693
removed contacts from js
2013-05-23 15:18:39 -07:00
David Kemp
ee58107caa
CB-3480: update now uses cordova.js not cordova-<ver>.js
2013-05-23 12:20:15 -04:00
Steven Gill
75f358d01e
removed contact code from js
2013-05-22 17:12:13 -07:00
Ian Clelland
01946dd4d6
[CB-3430] [CB-1413] Remove Old (2.3.3) HTTP Workaround
2013-05-22 13:57:16 -04:00
Joe Bowser
c9e16b2c39
CB-3364: Updating build instructions
2013-05-21 15:23:55 -07:00
Joe Bowser
77eada7dbd
CB-3064: We need to re-create the config object on resume, always create an object on init.
2013-05-21 13:33:09 -07:00
Steven Gill
f7c97cb1d0
removed splashscreen code from cordova.js
2013-05-21 13:04:40 -07:00
Andrew Grieve
f38a2ae14a
Add a .reviewboardrc file to make using post-review easier.
2013-05-21 12:35:47 -04:00
Steven Gill
7c22bc74bc
removed batter code from js
2013-05-20 17:40:11 -07:00
Steven Gill
dfd668d145
removed inappbrowser from cordovajs
2013-05-20 15:01:50 -07:00
Steven Gill
dbc6dd73f3
removed CordovaLocationListner
2013-05-17 15:38:08 -07:00
Steven Gill
4765c6fcc5
updated cordovajs, removed geolocation code
2013-05-17 15:19:04 -07:00
Steven Gill
78dd084303
updated cordova.js to include proper plugin loading
2013-05-17 10:51:52 -07:00
Steven Gill
cd9fb9b709
updated cordovajs
2013-05-16 18:01:24 -07:00
Steven Gill
adcbd879c8
ripped out plugins
2013-05-16 17:53:11 -07:00
Fil Maj
227733d195
[CB-3416] adding empty <plugins> element during deprecation window.
2013-05-16 14:35:58 -07:00
Shravan Narayan
13148728b3
Bugfix: Config parser for plugins with onload param.
...
The functionality was broken in the move from plugins to feature tags.
2013-05-16 15:41:59 -04:00
Shravan Narayan
8f91ebf194
DataResource bugfix WebviewClient logs error for http urls.
2013-05-16 14:29:04 -04:00
macdonst
230c635a54
[CB-3392] Fix a problem with the Windows jscript runtime
...
The problem is with this line in "create.js":
var ACTIVITY_PATH=PROJECT_PATH+'\\src\\'+PACKAGE_AS_PATH+'\\'+ACTIVITY+'.java';
[...]
exec('%comspec% /c copy "'+ROOT+'"\\bin\\templates\\project\\Activity.java '+ ACTIVITY_PATH +' /Y');
The Windows "copy" command will not create directories that don't exist, so the command above fails because "src\PACKAGE_AS_PATH" doesn't exist. This can be fixed with:
Also update cordova.js reference
2013-05-14 19:19:10 -04:00
Simon MacDonald
e1f930282c
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-05-13 22:23:25 -04:00
Simon MacDonald
cb07fe395c
CB-3068: Android menu not appearing as actionoverflow
2013-05-13 22:22:59 -04:00
Tim Kim
3917284f71
[CB-3340] - version script
2013-05-13 15:30:16 -07:00
Michal Mocny
8bfd45c095
[CB-3307] Fixing bin/create script due to cordova-$VERSION.js -> cordova.js change.
2013-05-13 10:30:02 -04:00
Shravan Narayan
a001d8cfb7
DataRequest code cleaned up.
2013-05-08 17:38:58 -04:00
Shravan Narayan
867358ea81
Changed all usages of FileHelper to use the new DataResource mechanism.
2013-05-08 17:38:58 -04:00
Shravan Narayan
62c3e46529
Added "DataResource" - allows many plugins to intercept a single request
2013-05-08 17:38:58 -04:00
Andrew Grieve
8a95ed8ee6
[CB-3307] Rename cordova-VERSION.js -> cordova.js
2013-05-08 09:52:56 -04:00
Joe Bowser
20caac1b6e
CB-3357: Fixing resource grabbing
2013-05-07 13:30:30 -07:00
Joe Bowser
48b8c69ba0
Part 2 of 2: CB-2657 Creating the dummy class so we have backwards compatibility
2013-05-07 09:46:26 -07:00
Joe Bowser
35d53a0684
Part 1 of 2: CB-2657 Moving DroidGap in git so we don't lose random commits. This is irritating
2013-05-07 09:45:50 -07:00
Joe Bowser
dbeb252fee
CB-3337: Not sure why the splashscreen was changed, fixing 9-patch
2013-05-03 15:37:48 -07:00
mbillau
21614ea891
Fix spacing, convert all tabs to spaces
2013-05-03 13:21:01 -04:00
mbillau
4b38ccef80
CB-3022: Add default text to Android Prompt
2013-05-03 13:18:30 -04:00
Abel Muiño
2d4d18fd75
[CB-3040] length is 1-based, but index is 0-based, can't use == in comparison
2013-05-03 13:13:48 -04:00
Andrew Grieve
27cd9dde38
[CB-1108] Update config.xml template's list of available <preference>s
2013-05-03 12:18:36 -04:00
Andrew Grieve
373da39ac2
[CB-1108] Make onload=true settable as a <feature> <param>
...
Plus some simplification of code.
2013-05-03 12:18:21 -04:00
Andrew Grieve
b7990b7df8
Deprecate <log> in favour of <preference name="loglevel">
2013-05-03 12:11:09 -04:00
Gorkem Ercan
4b9047b7d8
[CB-1108] Convert config.xml from <plugin> to <feature>
...
This unifies the config.xml used by iOS and Android. Now <feature> tags can be used
to add plugins. The changes are non-intrusive so the older versions of the config.xml
can still be used after this change. The value of a param named "android-package"
determines the class for the plugin.
2013-05-03 11:35:00 -04:00
ucavus
d226818be3
[CB-3304] Windows create script - Parameters should be quoted
...
Choking on spaces in filenames
2013-05-03 11:12:47 -04:00
Andrew Grieve
1ee9da79f8
Set VERSION to "dev" on master.
2013-04-30 14:33:54 -04:00
Joe Bowser
070eb6b947
Updating notice because okhttp is part of the AOSP
2013-04-29 10:57:00 -07:00
Ian Clelland
cbb0bd5ee7
[CB-2431] Update to okhttp to include jwilson's recovery fixes [f38fec5b]
2013-04-29 09:37:53 -04:00
Ian Clelland
553a25cea7
[CB-2431] Switch to OkHttp for FileTransfer connections
2013-04-29 09:31:23 -04:00
Shravan Narayan
53982272d6
[CB-3226] Fix: plugins can intercept urls with "?", "#", "%20"
2013-04-24 18:59:24 -04:00
Joe Bowser
a32cf2344f
CB-2810: Add Source and Line Number to logging, I wish we could tell the Web Console to shut up if it doesn't match our console
2013-04-23 14:56:14 -07:00
Joe Bowser
934cf32163
CB-3064: One line fix for the error where the config wasn't being read. Will have to add doc step for CordovaWebView
2013-04-23 13:53:10 -07:00
Joe Bowser
a17c7b9bbf
Fixing CB-2685: This class does nothing. Cordova is a Library not an Application
2013-04-22 16:57:54 -07:00
Joe Bowser
a03df3fad0
Merge branch 'cordova-lib' of git://github.com/bennmapes/cordova-android
2013-04-19 12:59:05 -07:00
Benn Mapes
86cd20dcc3
[CB-2788] added bash check-reqs script
2013-04-19 11:39:48 -07:00
Joe Bowser
71402b658e
Merge branches 'scripts' and 'master'
2013-04-19 10:08:16 -07:00
Joe Bowser
5d8d8e77f8
Merge branch 'cordova-lib' of git://github.com/bennmapes/cordova-android into scripts
2013-04-18 16:35:35 -07:00
Benn Mapes
4dee30ed84
[CB-2914] Cli script migration for unix bash
2013-04-18 16:34:52 -07:00
Joe Bowser
025676d6e7
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-04-18 14:52:17 -07:00
Joe Bowser
aad396ae38
CB-3165: Deprecation Notice
2013-04-18 14:44:00 -07:00
Andrew Grieve
c798d131bb
Update JS snapshot for 2.7.0
2013-04-18 15:28:00 -04:00
Ian Clelland
bf3e024648
[CB-3066] Fire onNativeReady from JS, as bridge is available immediately
2013-04-18 14:20:32 -04:00
Andrew Grieve
191f31baa7
[CB-2432] Don't try and write exif info for images from picasa
2013-04-17 16:40:00 -04:00
Joe Bowser
d3b7903af8
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-04-17 13:37:48 -07:00
Joe Bowser
99e7d1e161
Merge branches 'sunshine' and 'master'
2013-04-17 13:37:19 -07:00
Andrew Grieve
b13166f5d9
[CB-2432] Fix Camera.getPicture() for picasa images
2013-04-17 16:12:28 -04:00
Andrew Grieve
80fe4458c6
Use FileHelper in IceCreamCordovaWebViewClient.
...
Removes some duplicate logic and makes it a bit more robust.
2013-04-17 15:51:37 -04:00
Andrew Grieve
791574c26e
Make URL parsing more robust in FileHelper.
...
Fixes some cases when query parameters mess things up.
2013-04-17 15:50:29 -04:00
Joe Bowser
ac61ebf2d5
Merge branch 'master' of github.com:SunshineTech/cordova-android into sunshine
2013-04-17 11:44:49 -07:00
Benn Mapes
4599e9897d
[CB-2914] Cli script migration for windows jscript
2013-04-16 15:51:06 -07:00
avidmich
cb99ed0a01
Fixing URL transformation algorithm
...
It didn't work with URL like this:
http://host.com/path/to/file.txt#/foo?bar=baz
When hash sign is in front of question mark - it only strips the question mark, leaving the hash and breaking the whole app.
2013-04-16 15:45:32 -04:00
Andrew Grieve
4864d52966
[CB-2202] Remove Plugin.java (was deprecated).
2013-04-16 15:29:16 -04:00
Andrew Grieve
b2d61679fb
[CB-2963] Re-enable sending messages in batches.
...
Disabled by CB-1745, which is now reverted.
2013-04-16 15:04:56 -04:00
lorinbeer
383b3dadd5
[CB-3024] expanded help string for cl create script
2013-04-12 08:32:22 -07:00
Joe Bowser
c65c259123
CB-2200: Remove deprecated Android device.name
2013-04-11 13:53:12 -07:00
Joe Bowser
e7e2730929
Fixing CB-2955, breaking CB-2085, use localStorage, NOT WebSQL
2013-04-08 15:53:14 -07:00
Joe Bowser
bb9615eed0
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-04-04 16:06:03 -07:00
Joe Bowser
18877bf80e
Adding additional condition that the phone must be made by HTC for the setNavDump to be set to true to try and work around CB-2907, if it's still a problem on HTC devices running Android 2.2, that's just the luck of the draw.
2013-04-04 16:05:35 -07:00
HUANG Menghuai
778b784eb6
[CB-2908] Fix the DroidGap activity Lifecycle broken issue
...
Attempting to invoke the Activity's finish() onDestroy breaks an Activity's lifecycle
flag. OnDestroy can be called by the system, for instance, on restarting an Activity,
it's definitely different from a normal finish().
Finish() incorrectly in onDestroy results in another DroidGap derived activity
is started, while the original one is not yet onDestroy. This issue could be
found when the system is trying to restart the activity upon, for instance,
receiving immediately successive device Config changes.
2013-04-04 16:47:03 -04:00
Andrew Grieve
5ff900f7ec
Fixup for CB-2654.
2013-04-04 16:45:39 -04:00
Steren
ba31424604
Keep the splashscreen image ratio instead of streatching it.
...
An ImageView is used to be able to use ScaleType.CENTER_CROP, which is similar to the background-size:cover CSS property
2013-04-04 16:19:12 -04:00
Ian Clelland
1782111d45
[CB-2654] Delay executeScript/insertCSS callback until resources have loaded; pass JS results to callback
2013-04-04 14:34:58 -04:00
Max Woghiren
1fa63300aa
[CB-2666] Added check for null arguments.
...
If null arguments are received, send an error and an explanation.
2013-04-02 11:51:25 -04:00
Joe Bowser
b42c918973
Prep for 2.6.0 final
2013-04-01 14:54:51 -07:00
Joe Bowser
f12262ea96
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-03-28 10:02:46 -07:00
Joe Bowser
334cf45d6d
Fixing CB-1700, we had the file names reversed, so exif was never being written right. Needed to upload a file to debug this thing
2013-03-28 10:02:18 -07:00
Joe Bowser
b7bb72294a
CB-1796: Let's make sure we actually write the file instead of just writing EXIF to NOTHING
2013-03-28 10:02:02 -07:00
Joe Bowser
64ff204371
Updating JS
2013-03-28 10:01:15 -07:00
Ian Clelland
282367c6d5
[CB-1517] Properly report download progress for GZIP-encoded resources
2013-03-27 17:00:22 -04:00
James Jong
36c33a5889
CB-1944: Better error messages for Create script
...
- fixed to detect missing packages individually
- added a specific message for each missing package
- messages include how to correct and package download link
2013-03-27 15:46:45 -04:00
JasonM23
5ee7e81ff9
[CB-51] Added httpMethod for upload (defaults to POST)
2013-03-27 14:22:41 -04:00
Shravan Narayan
f4859444dd
Fixed protocol regex bug. Unknown protocol support Added whitelist support for unknown protocols
2013-03-26 00:20:11 -04:00
Andrew Grieve
73c7994cd1
Fix NPE in InAppBrowser.
...
When cordova.getActivity().getIntent().getExtras() == null.
2013-03-23 14:07:57 -04:00
Andrew Grieve
0c74090953
Log a message when exec() is made to an unregistered plugin.
2013-03-23 14:07:22 -04:00
Ian Clelland
f60d54eae4
[CB-2305] Add InAppBrowser injectSriptCode command to support InAppBrowser.executeScript and InAppBrowser.insertCSS APIs
2013-03-23 13:13:21 -04:00
Joe Bowser
31bc015cdd
Pre-2.6 prep
2013-03-21 10:35:09 -07:00
mbillau
b028ad3604
CB-2675: Add prompt dialog to Notification API
2013-03-20 23:14:42 -04:00
Max Woghiren
d2e4e35c37
[CB-2715] Simplified readAsBinaryHelper.
...
Also fixed some comments and other minor things.
2013-03-20 22:42:29 -04:00
Ian Clelland
1f37200bb6
[CB-1957] Stop any playing media when closing InAppBrowser
2013-03-20 15:56:27 -04:00
Ian Clelland
77178daad3
[CB-2308] [android] Report errors when InAppBrowser fails to load page
2013-03-20 15:42:08 -04:00
Richard Burton
1648f161d9
Implemented a conditional check to support providing the duration limit for the Android platform SDK 8 and above. The value is passed using the string literal value to ensure the logic is not dependent on SDK version specifics.
2013-03-18 11:23:21 -04:00
Richard Burton
9fa6cea69b
Implemented a conditional check to allow for the duration to be provided on the Android platform for SDK 8 and above.
2013-03-18 11:23:21 -04:00
Andrew Grieve
66b827e502
[CB-2632] Implement FileReader.readAsBinaryString
2013-03-15 16:47:33 -04:00
Andrew Grieve
7755a902dd
Add a new type to the Native->JS bridge for binary strings.
...
It's needed since the bridge truncates strings that have null
characters in them :(.
2013-03-15 16:47:04 -04:00
Max Woghiren
d25b73f47d
[CB-2546] Moved read calls to a background thread.
2013-03-15 16:01:02 -04:00
Max Woghiren
ac2969c3f8
[CB-2435] Split common methods out of FileUtils into FileHelpers
...
Also included in this change:
- Fixed getMimeType for content:// URIs.
- Made getRealPath take a URI string.
- Added basic android_asset handling.
There is no such thing as a "real path" for a file:///android_asset URI. However, it is possible to get an input stream to one.
And even more minor changes:
- removed unused FileReader/FileWriter instance variables
- added logging when getRealPath fails
- fixed indentation issues
- removed a try/catch in favor of throwing
- removed a null check in favor of throwing
- moved getEntry back to FilePlugin
2013-03-14 12:39:51 -04:00
Dave E
ee38b2ef03
Use pushd/popd instead of subshell
...
Improves the error message that happens when ant is not installed.
2013-03-14 12:31:56 -04:00
Max Woghiren
0f70e04e6e
[CB-1933] Changed button labels to an array.
...
This allows commas to be included in button label text.
2013-03-14 11:34:29 -04:00
Joe Bowser
9fc1e7272e
CB-2668: Thanks for supplying a patch, but please make sure it actually builds.
2013-03-13 16:02:06 -07:00
Yavor Georgiev
0d4d0b8a37
Adding workaround for ICS asset URLs with spaces
2013-03-13 19:52:49 +02:00
Andrew Grieve
fcd2c989a2
[CB-2418] Fix geolocation's velocity field broken on Android
2013-03-12 20:54:24 -04:00
Simon MacDonald
e0d0d6c455
CB-2459: Customize InAppBrowser location bar
2013-03-10 10:33:42 -04:00
Simon MacDonald
ce1a961b99
CB-2640: Allow InAppBrowser to open tel, sms, market urls
2013-03-08 14:14:41 -05:00
Joe Bowser
c71a08a9d9
Merge branches 'leon' and 'master'
2013-03-07 13:06:10 -08:00
Joe Bowser
17bfcea65a
Merge branch 'master' of git://github.com/sweetleon/cordova-android into leon
2013-03-07 11:20:43 -08:00
Joe Bowser
5e8959bab1
Removing baseURL because it doesn't actually do anything. If we want to make sure remote websites work, we whitelist them
2013-03-07 08:52:02 -08:00
Joe Bowser
9924dc0f92
So much for squashing, I should have branched this.
2013-03-06 15:31:25 -08:00
Joe Bowser
7388c036d7
Making framework only apply for http resources for now, so we don't break non-http handling. I had to squash this to make it pretty
2013-03-06 15:29:40 -08:00
Joe Bowser
ad4512801f
Making framework only apply for http resources for now, so we don't break non-http handling
2013-03-06 15:26:13 -08:00
Joe Bowser
409b9af398
CB-2099: Android Whitelisting now blocks images and JS with an empty response
2013-03-06 14:56:27 -08:00
Braden Shepherdson
7cc8fd7e87
Allow plugins to capture shouldInterceptRequest()
2013-03-06 11:53:10 -05:00
Joe Bowser
42c8105f13
CB-2623: Updated windows script, now it works here too for once
2013-03-05 16:13:43 -08:00
Joe Bowser
9a71cc5b4e
CB-2623: Added partial work on update script
2013-03-05 14:36:52 -08:00
Joe Bowser
c543b7469d
CB-2623 Adding update script to Android
2013-03-05 11:30:38 -08:00
Joe Bowser
7caac3265a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-03-04 16:09:55 -08:00
Joe Bowser
5d68d5a246
CB-2198: Removing option to use our broken URL stack as a history as per deprecation policy.
2013-03-04 16:09:37 -08:00
Braden Shepherdson
7187f87eae
Add readAsBinaryString and readAsArrayBuffer support
2013-03-04 17:36:40 -05:00
Joe Bowser
fb81f3e77e
CB-2596: Fixing the menubutton for text fields
2013-03-04 14:26:28 -08:00
lenny
0ae49ed098
moveFile handles absolute paths by not pre-pending anything to them
2013-03-01 22:11:29 -08:00
lenny
b8e5aaf754
ignore IntelliJ files
2013-03-01 21:56:57 -08:00
Tommy-Carlos Williams
aa4820c3b7
[CB-861] Header support for FileTransfer download
...
Added support for an optional options object as the final arg. Currently only handles the options.headers object (as per the issue).
`FileTransfer.download(source, target, successCallback, errorCallback, trustAllHosts, options)`
This is needed for using FileTransfer.download with Basic Authentication, etc. Sadly since Android 2.x doesn't support XHR2, this is needed in FileTransfer.
I have only added support to Android and iOS (see other PR's).
2013-02-28 13:10:59 -05:00
Joe Bowser
5d79d6e134
Merge branch 'next'
2013-02-27 11:07:55 -08:00
Joe Bowser
fb1455a17b
Preparing to tag 2.5.0
2013-02-26 13:49:47 -08:00
Shravan Narayan
c668eeba0f
Added CallbackContext success message with an int parameter
...
Added a small utility function to convert JSONArray to List<String>
2013-02-25 15:17:40 -05:00
Michal Mocny
62421ee49d
CB-2530: Update callbackFromNative syntax to args
...
New callbackFromNative syntax expects an array of arguments instead of a
single message.
2013-02-25 13:28:26 -05:00
Joe Bowser
e791f29ce1
CB-2333: Probably should be re-factored as a do..while, but need to handle when there is no EOL char in buffer
2013-02-22 11:58:37 -08:00
Joe Bowser
06947cc453
CB-2333: Adding body property to FileTransferError object on Android
2013-02-22 11:48:17 -08:00
Joe Bowser
8c97474524
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-02-21 16:49:19 -08:00
Joe Bowser
77a8568b28
CB-2522: We used buttons in older versions to send the post, not the submit event. Disabled form saving
2013-02-21 16:48:57 -08:00
Braden Shepherdson
e2dadbd7fe
Fix return types of getJSONObject and optJSONObject in CordovaArgs
2013-02-21 15:53:15 -05:00
Joe Bowser
17b668a115
CB-2085: Fixing deleted database for ChildBrowser
2013-02-21 11:53:06 -08:00
Joe Bowser
a30c2b6a75
CB-2504: Merged overscroll disallowance, needed to deal with merge conflict with the InAppStorage toggle
2013-02-21 10:45:50 -08:00
Joe Bowser
2660eebec2
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-02-21 10:31:00 -08:00
Max Woghiren
f415664b6d
[CB-2504] Allow the disabling of overscroll glow.
2013-02-21 12:47:59 -05:00
Takeshi Sone
5092b29312
[CB-2518] Enable Geolocation in InAppBrowser
2013-02-21 09:07:06 -05:00
Joe Bowser
d5be901bc2
Merge branch 'next'
2013-02-20 13:53:15 -08:00
Joe Bowser
5462eddfdb
Updating the JS for 2.5.0rc1
2013-02-20 13:52:29 -08:00
Joe Bowser
fef51f12c6
Apparently the JS was wrong when tagging
2013-02-20 13:06:13 -08:00
Joe Bowser
fdb3679cf5
Merge branch 'next'
2013-02-20 11:25:32 -08:00
Joe Bowser
11beb37c50
Setting to turn off Online Storage
2013-02-20 11:21:17 -08:00
Joe Bowser
5cd17730b1
Tagging 2.5.0rc1. Updating files
2013-02-19 11:53:36 -08:00
mbillau
cb192056f8
CB-2458: gracefully exit with back button
...
If users do extra initialization, we can get NPEs when hitting the back
button before loadUrl() has been called.
-Null fenced code in startOfHistory() that gave us an NPE when hitting
Back button with useBrowserHistory=true
-Call finish() in Back button code when no history since with
useBrowserHistory=true it would just hang while the app inits
-Call loadUrlIntoView() first in handleDestory() since with
useBrowserHistory=false, the default behavior would try to use the baseUrl
which is null
2013-02-18 16:42:14 -05:00
Joe Bowser
892f96e305
CB-2282: Turning on AppCache
2013-02-18 11:37:28 -08:00
Joe Bowser
13ef58a5bb
Updated XML for the test project
2013-02-18 11:26:40 -08:00
SunshineTech
2bf6509e1d
Modify Issue CB-2273.
2013-02-17 21:50:33 +08:00
Joe Bowser
a45d5a98dd
CB-1605: Going through Eclipse warnings, removing the unused imports
2013-02-15 15:46:36 -08:00
Joe Bowser
a31714f8a4
CB-2447: This is a non-trivial task. Migrated test plugin to modern plugin API.
2013-02-15 14:25:56 -08:00
Joe Bowser
23d2a806f0
Merge branch 'CB-2447' of git://github.com/jamesjong/cordova-android
2013-02-15 14:02:23 -08:00
Joe Bowser
c20b2330ab
CB-2446: Ugly, but workable fix
2013-02-15 13:57:34 -08:00
Fil Maj
8613551aec
minor readme stuff
2013-02-15 13:18:03 -08:00
Fil Maj
2ab01dadc0
Adding link to cordova.io in readme
2013-02-15 13:12:19 -08:00
James Jong
790636c8cd
CB-2447: Remove use of deprecate org.apache.cordova.api.Plugin
2013-02-15 13:18:58 -05:00
Andrew Grieve
23938830f7
[CB-2213] Add NATIVE_URI to the quick-return logic.
2013-02-14 10:50:37 -05:00
Benn Mapes
674b87057a
[CB-2297] Fix for geolocaion database error
2013-02-12 14:23:01 -08:00
Richard Kolkovich
83d9248ec8
Update framework/src/org/apache/cordova/ContactAccessorSdk5.java
...
`Im.PROTOCOL` is a String, not an int. Treat it as such to prevent an Exception being thrown when parsing `null`.
2013-02-12 16:18:50 -05:00
Joe Bowser
f9d27e4a67
CB-2408: There should be a check for the browser history, but the logic intentionally doesn't match
2013-02-12 11:16:01 -08:00
patrick kettner
2683803ef3
Add check for build targets in create script
...
I installed the android sdk via homebrew, which does not install any build targets by default.
That resulted in the create throwing the following somewhat cryptic error.
An unexpected error occurred: "$ANDROID_BIN" create project --target $TARGET --path "$PROJECT_PATH" --package $PACKAGE --activity $ACTIVITY >&/dev/null exited with 1
This just adds a check that the variables that are set to the values of the build targets are properly set, and exit if they are not.
2013-02-12 11:07:51 -05:00
Andrew Grieve
dd86d7a5ed
[CB-2095] Delete file on FileTransfer.download fail
2013-02-12 10:55:33 -05:00
Max Woghiren
1246a81d39
[CB-2213] Added NATIVE_URI support.
...
This is mostly the same as FILE_URI on Android.
Also replaced calls to `stripFileProtocol` with the more general-purpose `getRealPathFromURI`. This helps support some operations on content URIs.
2013-02-11 22:45:14 -05:00
Andrew Grieve
8ab7278db2
Code clean-up of FileTransfer
...
- Fix warnings about toLowerCase()
- Don't assume connections are HTTP (fails for file://)
- Use StringBuilder
- Remove no-ops of disconnect() & keep-alive
2013-02-11 22:35:17 -05:00
Joe Bowser
db099e7722
Preparing for 2.4.0
2013-02-04 11:12:52 -08:00
Joe Bowser
fcc01bc37e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-31 10:45:02 -08:00
Joe Bowser
a18dacf5f2
CB-2296 - Adding the screenshot configuration
2013-01-31 10:44:46 -08:00
Anis Kadri
77f9cae50b
CB-1961 update to create script for android/windows
2013-01-30 14:57:49 -08:00
Joe Bowser
3610bbf21b
CB-2296: Adding deprecation notices for removing the setProperties methods
2013-01-30 11:31:59 -08:00
Joe Bowser
d5e3be9a55
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-30 11:13:28 -08:00
Joe Bowser
80b369d6d5
CB-2296: Added parsing for Integer and Boolean parameters in config.xml
2013-01-30 11:13:07 -08:00
Andrew Grieve
d29eb84010
Tagging 2.4.0rc2
2013-01-30 09:51:40 -05:00
Joe Bowser
381ce535bf
Merge branch 'puritytool'
2013-01-29 15:20:21 -08:00
Andrew Grieve
2e20bb0639
[CB-2293] Fix typo bufferSize->bytesRead.
...
Also adds a log statement to print out amount uploaded when an
IOException is thrown.
2013-01-29 13:47:15 -05:00
Joe Bowser
56cd24797e
Fix for CB-2284. 401s are appearing when we hit them
2013-01-25 16:39:02 -08:00
Joe Bowser
431ca99c23
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-25 14:41:26 -08:00
Joe Bowser
6ced2ff293
CB-2292: Added a check for width and height. You can't scale nothing because you can't divide by zero.
2013-01-25 14:41:14 -08:00
Joe Bowser
31055bb303
Update to purity, adding better touch support
2013-01-25 14:39:44 -08:00
Fil Maj
24a53e39dd
hey new line
2013-01-23 18:31:30 -08:00
Fil Maj
2ab113b695
Removing notice about incubation in the readme.
2013-01-23 12:21:49 -08:00
Fil Maj
9a0481a750
tweaking readme
2013-01-23 12:17:42 -08:00
Fil Maj
09035eb4c4
Setting template AndroidManifest values for version to 1.0 and code to 1.
2013-01-23 12:13:07 -08:00
Joe Bowser
1adf268e71
Updates to tests, including the use of Purity
2013-01-22 15:18:21 -08:00
Joe Bowser
23f57ad5a7
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android into puritytool
2013-01-21 14:59:04 -08:00
Joe Bowser
d9b15cf69e
Updating with fixed JS from CB-2279
2013-01-21 13:47:26 -08:00
Joe Bowser
dbfe12a993
Partial fix for CB-2269, we probably shoudln't call Config.init twice
2013-01-18 16:41:10 -08:00
Joe Bowser
2b32dfd99d
Partial Fix for CB-2269
...
* Moved Config.init call into DroidGap for the most common use-case
* The CordovaWebView docuemntation still has to be updated
* The template has to be changed, since we don't want to have two different types of config
2013-01-18 16:37:55 -08:00
Joe Bowser
679de40780
2.4.0rc1 updating
2013-01-18 15:33:38 -08:00
Joe Bowser
66f15fdd37
Adding purity to the test suite. Purity is a test class that may be renamed later
2013-01-18 15:00:02 -08:00
Joe Bowser
038f0e45b1
Upgrading Test Project properties to 4.2
2013-01-18 11:44:09 -08:00
Joe Bowser
033bfcc804
This should be Android 4.2, not Google APIs
2013-01-18 11:36:12 -08:00
Braden Shepherdson
fa87c08a29
Merge branch 'master' into arraybuffers
2013-01-18 12:33:25 -05:00
Braden Shepherdson
dfb799739a
Change binaryEcho to echoArrayBuffer.
2013-01-18 12:32:52 -05:00
Joe Bowser
1193f7ed22
Fixed Android 4.2 filepicker, time for master
2013-01-17 17:00:50 -08:00
Braden Shepherdson
7530c21a9f
Full binary data support.
...
- Removed BinaryEcho; made Echo support a new binaryEcho action.
- Added CordovaArgs wrapper for JSONArray, and a new overload for
execute that accepts a CordovaArgs. There is now a default
implementation for the JSONArray version of execute that builds a
CordovaArgs and calls that version of execute. The default
implementation for the CordovaArgs execute is to return false.
- Added byte[] version of success() in CallbackContext.
2013-01-17 15:58:38 -05:00
Simon MacDonald
a120614617
Initial input type=file support
2013-01-17 10:10:02 -05:00
Andrew Grieve
0311f0db38
CB-2208 Fix crash on File mobile-spec tests
...
Crash seems to not happen on every platform, but was showin up on the
x86 4.0.3 emulator.
2013-01-17 09:55:37 -05:00
Braden Shepherdson
547b683e61
Remove debugging.
2013-01-15 13:24:59 -05:00
Braden Shepherdson
ff1d943a69
Add CordovaArguments helper to decode ArrayBuffers
2013-01-15 13:21:09 -05:00
Braden Shepherdson
15a5c89e86
Removed debugging output.
2013-01-15 11:52:06 -05:00
Braden Shepherdson
03b974ee3f
Working Base64 encoding.
2013-01-15 11:48:09 -05:00
Braden Shepherdson
f145605c63
Mostly working arraybuffer changes, needs Base64.
2013-01-15 11:16:32 -05:00
Joe Bowser
29230d0316
CB-2171: Patches are welcome.
2013-01-11 11:26:36 -08:00
Joe Bowser
57fc49ddc2
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-11 10:24:50 -08:00
Simon MacDonald
5ac6853fed
CB-2154: navigator.splashscreen.show() broken in Phonegap 2.2 and 2.3.0rc2
...
Fixed the splashscreen so it will show for a minimum of 3 seconds if the user has not called loadUrl with a timeout in their main activity.
2013-01-11 10:24:03 -08:00
Fil Maj
b870214cca
Fixes CB-2204: if bin/create fails, exit with code 1
2013-01-11 10:24:03 -08:00
Braden Shepherdson
55074b925f
Added a comment to explain where the start page is getting set.
2013-01-11 10:24:03 -08:00
Braden Shepherdson
958424ce59
Add configurable start location to config.xml and template
...
Still possible to hardcode, there's a comment in the template showing
how that can be done.
2013-01-11 10:24:02 -08:00
Braden Shepherdson
d04fc289ac
Move config.xml parsing into its own Config class
...
Now the parsing happens very early in the bootstrap process, before
loadUrl() is called. This enables a future change to put the start page
in config.xml instead of hardcoding it.
2013-01-11 10:24:02 -08:00
Braden Shepherdson
e14edf134d
Merge branch 'master' into start_location
2013-01-11 12:13:43 -05:00
Simon MacDonald
dbb127447f
CB-2154: navigator.splashscreen.show() broken in Phonegap 2.2 and 2.3.0rc2
...
Fixed the splashscreen so it will show for a minimum of 3 seconds if the user has not called loadUrl with a timeout in their main activity.
2013-01-10 22:06:39 -05:00
Fil Maj
dc94fc39ec
Fixes CB-2204: if bin/create fails, exit with code 1
2013-01-10 18:29:36 -08:00
Joe Bowser
6db9a7cb12
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android into CordovaActivity
2013-01-10 16:26:24 -08:00
Benn Mapes
1f39386616
Fixed broken functions that were deprecated
2013-01-10 15:07:26 -08:00
Benn Mapes
25aef945d1
Deleted depricated methods
2013-01-10 14:51:20 -08:00
Joe Bowser
c9aa43afe0
CB-2185: Fixing getMimeType to get the mimetype of the file if it is upper-case
2013-01-10 11:32:37 -08:00
Braden Shepherdson
913e177f6f
Added a comment to explain where the start page is getting set.
2013-01-09 17:36:12 -05:00
Braden Shepherdson
ae431aec12
Add configurable start location to config.xml and template
...
Still possible to hardcode, there's a comment in the template showing
how that can be done.
2013-01-09 16:48:43 -05:00
Braden Shepherdson
8ac15048cd
Move config.xml parsing into its own Config class
...
Now the parsing happens very early in the bootstrap process, before
loadUrl() is called. This enables a future change to put the start page
in config.xml instead of hardcoding it.
2013-01-09 14:22:23 -05:00
Simon MacDonald
a1cfe87f1e
CB-2093: NullPointerException when attaching image from Gallery that contains spaces in the path
...
Guarding against a null string being passed into FileUtils.getMimeType()
2013-01-08 21:10:50 -05:00
Simon MacDonald
c130396d4e
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-08 18:48:44 -05:00
Joe Bowser
bc2e7cf317
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-01-08 13:54:44 -08:00
Joe Bowser
7ace1d652d
Fixing CB-2171, 0 byte file in filesystem on 404 from server. Patches are welcome.
2013-01-08 13:54:38 -08:00
Simon MacDonald
26effd1def
Test for correctOrientation not rotate=0
...
when determining if we are in the special case where the image should just be retureturned to the user without modification.
2013-01-08 15:21:55 -05:00
Braden Shepherdson
5f6824e5dd
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android into file_slicing
2013-01-07 18:13:54 -05:00
Braden Shepherdson
4589bdd31f
And support for slicing in readAsDataURL.
2013-01-04 15:00:55 -05:00
Joe Bowser
72e0b49e0b
Fixed CB-2089 after I tagged for the release. This will have to sit in 2.4.0
2013-01-03 10:18:41 -08:00
Joe Bowser
3caa45d860
Typo. Missed index.html in incrementation
2013-01-02 17:10:00 -08:00
Joe Bowser
7c069f14f8
Incrementing version to 2.3.0 final
2013-01-02 17:07:21 -08:00
Braden Shepherdson
552885dbd3
Add support for reading slices of text files.
2013-01-02 15:34:39 -08:00
Joe Bowser
6efeb1471c
Incremeting version to 2.3.0rc2
2012-12-10 14:26:38 -08:00
Simon MacDonald
01f062d2ba
Saving a contact with an email type of work sets it to home
2012-12-08 22:02:34 -05:00
Joe Bowser
2a42c463d2
CB-1973: We don't need to log three damn times! If it wasn't for HTC, I'd remove this entirely.
2012-12-06 10:40:57 -08:00
Joe Bowser
182843edf6
CB-1850 change: Model is getModel, name is getProduct
2012-12-05 14:58:47 -08:00
Simon MacDonald
9a9d36e9d9
CB-1969: Searching for emails in Contacts throws an exception always errors out
2012-12-05 16:28:27 -05:00
Simon MacDonald
7d5249eea6
Clean up warnings in InAppBrowser
2012-12-05 12:09:17 -05:00
Joe Bowser
f7910c41c3
Changing FILL_PARENT to MATCH_PARENT, removing Eclipse deprecation warnings
2012-12-04 14:14:19 -08:00
Joe Bowser
3973f4f952
More back button woes! The Fix for CB-1960 did weird things on both my end and Simon's end, sadly they're both different things. This should simply the code and resolve it. Sadly, all the unit tests pass as usual.
2012-12-04 12:06:05 -08:00
Joe Bowser
8a19769a47
Fix for CB-1960, we now check to see if any view is on the WebView, since they won't always be custom
2012-12-04 09:40:57 -08:00
Brian M Dube
c0ee593c10
[CB-1959] Display usage and exit when no arguments given
2012-12-02 21:21:24 -05:00
Andrew Grieve
c806451b8a
Update Android SDK verions and commons-codec version in README.md.
2012-12-02 21:19:58 -05:00
Shazron Abdullah
00e5ff1964
Updated cordova.android.js for CB-1950 - InAppBrowser events
2012-11-30 05:47:37 -08:00
Shazron Abdullah
432aec62a9
[CB-1950] InAppBrowser - support events
2012-11-30 05:40:59 -08:00
Joe Bowser
c8ec7e5191
Doing the merge and fixing DroidGap up a bit
2012-11-28 15:30:22 -08:00
Joe Bowser
a0d2b96de6
Merge commit and hacking on CordovaWebView
2012-11-28 15:10:36 -08:00
Joe Bowser
2c202b82d7
Partial Fix/Workaround for CB-1856. Also removed old deprecated code
2012-11-28 14:42:55 -08:00
Simon MacDonald
a42dc08756
Start adding events to InAppBrowser
2012-11-28 15:44:01 -05:00
Simon MacDonald
48f58110fe
CB-1938: Regression, Android back button event is no longer fired
2012-11-27 12:18:49 -05:00
Simon MacDonald
7b3724972b
Tagging to 2.3.0rc1
2012-11-26 16:09:52 -05:00
Simon MacDonald
9ca2a16218
Updating JS so that InAppBrowser will work out of the box
2012-11-23 09:38:49 -05:00
Simon MacDonald
f1e8400abf
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/cordova-android
2012-11-22 22:28:34 -05:00
Andrew Grieve
11e0ffa90a
Add @JavascriptInterface annotations to ExposedJsApi.
...
And re-enable the JS bridge on 4.2.
https://issues.apache.org/jira/browse/CB-1879
2012-11-22 22:23:51 -05:00
Anis Kadri
2ee4326a4d
updating create command
2012-11-22 22:23:51 -05:00
Anis Kadri
226e72ac18
adding release command
2012-11-22 22:23:51 -05:00
Anis Kadri
65c78b8f3f
removing ApplicationInfo.class
2012-11-22 22:23:51 -05:00
Anis Kadri
6137c7ca06
removing appinfo.jar
2012-11-22 22:23:51 -05:00
Simon MacDonald
5bebf11b37
CB-1888: Can't add a Photo from a HTTPS address to Contact
2012-11-22 22:23:51 -05:00
Anis Kadri
68161d2714
refactoring windows scripts
2012-11-22 22:23:51 -05:00
Anis Kadri
a6473cb826
adding install function
2012-11-22 22:23:51 -05:00
Anis Kadri
0084c6f96a
refactoring android commands
2012-11-22 22:23:51 -05:00
Simon MacDonald
a87825dbee
CB-1508: Implement InAppBrowser feature
...
Initial checkin. Need to clean up the UI and add eventing.
2012-11-22 22:21:24 -05:00
Andrew Grieve
3566154cd0
Add @JavascriptInterface annotations to ExposedJsApi.
...
And re-enable the JS bridge on 4.2.
https://issues.apache.org/jira/browse/CB-1879
2012-11-22 12:39:18 -05:00
Anis Kadri
92d69e320f
updating create command
2012-11-21 16:35:27 -08:00
Anis Kadri
08a190ef5b
adding release command
2012-11-21 16:35:16 -08:00
Anis Kadri
98339ee5d8
removing ApplicationInfo.class
2012-11-21 13:37:19 -08:00
Anis Kadri
fa387fd758
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-21 13:33:21 -08:00
Anis Kadri
54979f2fc4
removing appinfo.jar
2012-11-21 13:33:09 -08:00
Simon MacDonald
538e90f23a
CB-1888: Can't add a Photo from a HTTPS address to Contact
2012-11-21 11:27:25 -05:00
Anis Kadri
d9107bcac6
refactoring windows scripts
2012-11-20 18:49:16 -08:00
Anis Kadri
3f3a0b9140
adding install function
2012-11-20 14:49:49 -08:00
Anis Kadri
e1347e434e
refactoring android commands
2012-11-20 14:39:37 -08:00
Joe Bowser
7657faa9c3
CB-1852: Android version of model implemented, too bad it's all code names and not human readable
2012-11-19 13:26:22 -08:00
Joe Bowser
28ef765913
Upgrading App plugin to CordovaPlugin
2012-11-19 11:33:21 -08:00
Joe Bowser
d2f59391a2
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-19 10:36:45 -08:00
Joe Bowser
df90bdb350
Fixing up the tests so they crash less.
2012-11-19 10:36:26 -08:00
Joe Bowser
c416c77d7a
Fix for CB-1879 by Tom Clarkson. Hacked in due to lack of pull request
2012-11-19 10:35:47 -08:00
Andrew Grieve
ce05a720d1
Update .gitignore
2012-11-16 15:41:38 -05:00
Joe Bowser
6c19a440f5
CB-1864: Figured out how to simulate back button, test both the CordovaWebView back button and the general DroidGap case using the default implementation
2012-11-15 16:04:09 -08:00
Joe Bowser
f4612fdb5d
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-15 13:48:15 -08:00
Joe Bowser
04b9a0b09e
Death to tabs while working on CB-1864
2012-11-15 13:47:52 -08:00
Simon MacDonald
f93c438067
CB-1860: NPE in onReceivedError with non local errorUrl
2012-11-15 11:04:50 -05:00
Joe Bowser
e1d608443a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-14 13:23:35 -08:00
Joe Bowser
9233c3a898
Fixing error with the tests, backbuttonmultipage wasn't added
2012-11-14 13:22:58 -08:00
Simon MacDonald
dfa514334b
Bumping Android API version to 17
2012-11-14 16:05:50 -05:00
Joe Bowser
5810a96e62
Adding reflection so that this compiles, need to test against HTC Desire HD 2.3.6 device before resolving CB-1845
2012-11-14 11:15:22 -08:00
Joe Bowser
70473a80af
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-13 14:31:33 -08:00
Joe Bowser
525fd30cb2
Merge branch 'Android_2.3.4_camera_crash' of git://github.com/IuriiO/incubator-cordova-android into null_camera
2012-11-13 11:37:40 -08:00
Andrew Grieve
5212cd4dcd
Disable JS Interface on Honeycomb
...
Fixes https://issues.apache.org/jira/browse/CB-1818
2012-11-13 12:50:15 -05:00
Simon MacDonald
e95bde62a2
Correctly report the mime type of 3ga files
2012-11-12 10:22:35 -05:00
Simon MacDonald
4fe73cf6ad
CB-1835: Camera.getPicture gives error when get a picture from photo library with spaces in its name on Android
2012-11-12 10:00:32 -05:00
Simon MacDonald
78b2835da4
Merge branch 'master' of https://github.com/ilbambino/incubator-cordova-android
2012-11-12 09:57:19 -05:00
Iurii Okhmat
f9a49efae9
Removed unnecessary import.
2012-11-09 16:44:33 -08:00
Iurii Okhmat
b9ddc9e678
Camera plugin (HTC Incredible) is crashing on 2.3.4 devices without SD card
2012-11-09 16:40:56 -08:00
Simon MacDonald
dc459c84a3
CB-1829: Online/Offline events do not fire on subsequent pages of an app
2012-11-09 11:28:50 -05:00
Alvaro
1d26239809
not getting the path correctly if the URI contains a file://
...
Previous to 2.2 this function was crashing if the URI wasn't different
than a 'content://' but still if it is a 'file://' it fails getting the
correct path.
This happens for example picking a picture from dropbox instead of
local gallery.
2012-11-09 09:28:26 +02:00
Joe Bowser
5ca233779d
This is as far as we can get fixing the Camera plugin by recovering state
2012-11-08 15:42:28 -08:00
Simon MacDonald
e51b4897a3
Guard against null mimeType in MediaFile.getFormatData
2012-11-08 14:01:46 -05:00
Anis Kadri
81f283e56f
CB-1794 fixing cordova commands for paths with spaces in them
2012-11-07 13:22:14 -08:00
Anis Kadri
ccdd2fd2ca
CB-1809 create script should print out meaningful error messages
2012-11-05 17:51:32 -08:00
Joe Bowser
69f11a29e1
Updating the project so that the activities are clearly separated from Test and Helper code
2012-11-02 16:15:51 -07:00
Joe Bowser
cf494f3238
Fixing the tests so that they run as an Activity again
2012-11-02 13:48:05 -07:00
Joe Bowser
d5895c635a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-11-02 13:33:13 -07:00
Simon MacDonald
2ac9873613
CB-1808: FileEntry.moveTo across file systems incorrectly calls the success callback
2012-11-02 14:50:24 -04:00
Joe Bowser
eb59e76cde
Fixing CB-1801
2012-11-01 12:23:18 -07:00
Simon MacDonald
d9db845b43
CB-1795: onCreateOptionsMenu in PhoneGap 2.2.0 Release Candidate 2 isn't working anymore
2012-11-01 10:30:34 -04:00
Joe Bowser
e55327b064
Tagging the 2.2.0 release after this commit
2012-10-31 10:57:57 -07:00
Simon MacDonald
bdd5a4e053
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/incubator-cordova-android
...
Somedays, I hate git.
2012-10-29 16:23:36 -04:00
Andrew Grieve
ac2e2c9a42
Update JS to new tag (again). Includes latest fix to CB-1745.
2012-10-29 16:21:12 -04:00
Andrew Grieve
76f9d49e24
Disable limiting of payload size when sending data to JS.
...
Fixes https://issues.apache.org/jira/browse/CB-1745
2012-10-29 16:21:12 -04:00
Andrew Grieve
6ec8ab95fc
Update JS to new 2.2.0rc2 tag.
2012-10-29 16:21:12 -04:00
Joe Bowser
9c98625610
Partial fix for CB-1742, still don't know what this should do for notification.confirm's cancel, so we return zero for now
2012-10-29 16:21:12 -04:00
Joe Bowser
f270cde47d
Changing DroidGap back and duplicating code so that we don't have a regression on CB-1568
2012-10-29 16:21:12 -04:00
Joe Bowser
9de7efd072
Added fix for webViewClient. CB-1568
2012-10-29 16:21:12 -04:00
Joe Bowser
7b81d317a0
Moved the initialization of the IceCreamWebViewClient to CordovaWebView, we weren't loading the fix in properly after the refactor - CB-1742
2012-10-29 16:21:12 -04:00
Simon MacDonald
876f975aa2
CB-1691: Android menu button event doesn't fire when textbox has focus
2012-10-29 16:20:39 -04:00
Andrew Grieve
3c5815ac0f
Update JS to new tag (again). Includes latest fix to CB-1745.
2012-10-26 16:09:54 -04:00
Andrew Grieve
678ae2d684
Disable limiting of payload size when sending data to JS.
...
Fixes https://issues.apache.org/jira/browse/CB-1745
2012-10-26 16:08:35 -04:00
Andrew Grieve
e4f8f44fb0
Update JS to new 2.2.0rc2 tag.
2012-10-26 10:41:08 -04:00
Joe Bowser
49566d29f8
Partial fix for CB-1742, still don't know what this should do for notification.confirm's cancel, so we return zero for now
2012-10-25 14:13:17 -07:00
Joe Bowser
7f4ee7b20a
Changing DroidGap back and duplicating code so that we don't have a regression on CB-1568
2012-10-25 13:18:28 -07:00
Joe Bowser
32526a8c16
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-25 12:17:58 -07:00
Joe Bowser
71a7f72ab9
Added fix for webViewClient. CB-1568
2012-10-25 12:17:38 -07:00
Joe Bowser
4d0824f4a4
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-25 12:12:47 -07:00
Joe Bowser
d56dd40d06
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-25 12:11:41 -07:00
Joe Bowser
6aafd6dc3a
Moved the initialization of the IceCreamWebViewClient to CordovaWebView, we weren't loading the fix in properly after the refactor - CB-1742
2012-10-25 12:11:09 -07:00
Andrew Grieve
011b512f28
Update JS.
2012-10-25 15:02:26 -04:00
Andrew Grieve
aa2d17e489
Disable JS_OBJECT bridge on pre-gingerbread devices.
...
It's the easiest way to avoid bugs with Java strings not being converted
to JS Strings.
2012-10-25 15:00:21 -04:00
Andrew Grieve
0eee2293dc
Add support for null PluginResult payloads.
...
https://issues.apache.org/jira/browse/CB-1744
2012-10-25 12:05:39 -04:00
Simon MacDonald
a2f35d2bda
CB-1743: Globalization.getDateNames will crash Android 2.2 applications
2012-10-25 10:35:22 -04:00
Simon MacDonald
58f58d9ee8
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/incubator-cordova-android
...
Conflicts:
framework/assets/js/cordova.android.js
2012-10-24 16:32:01 -04:00
Simon MacDonald
412bb349ac
Pull in exec fix for Android 2.2
2012-10-24 16:29:26 -04:00
Simon MacDonald
652f15f893
Guard against NullPointerException in Compasslistenter
2012-10-24 16:29:02 -04:00
Joe Bowser
8512ebb923
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-24 12:07:20 -07:00
Joe Bowser
f0ac173ec8
Adding the updated blank index
2012-10-24 12:06:37 -07:00
Joe Bowser
bef0d47924
Starting incrementing the tag to RC2
2012-10-24 12:06:00 -07:00
Bryce Curtis
cba0d59021
Fix exception when plugin returns a null string.
2012-10-24 12:36:30 -06:00
Andrew Grieve
7d3afcab94
Tweak the useBrowserHistory deprecation message to make the date is clear
2012-10-23 14:12:48 -04:00
Joe Bowser
5f1cda07e7
Cleaning up code, because negating string comparisons is confusing if the string itself is called false. Also clarified the deprecation message to match the Cordova policy that we agreed on for deprecation changes
2012-10-23 10:46:53 -07:00
Joe Bowser
e11beade4b
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-23 10:25:33 -07:00
Andrew Grieve
6a1e089b73
Change useBrowserHistory to default to true (actually)
...
Also logs a deprecation mession on start-up when it is set to false.
Fixes issue: https://issues.apache.org/jira/browse/CB-1611
2012-10-23 13:15:44 -04:00
Simon MacDonald
0aa98ac2da
CB-1697: openDatabase of Cordova for Android uses the wrong directory separator
2012-10-22 13:50:16 -04:00
Joe Bowser
f9ef38cc7a
Updating the config.xml default to be true. See discussion on CB-1611
2012-10-19 07:23:55 -07:00
Simon MacDonald
a3a215a1ba
Merge in video tag changes and fix back button issue
2012-10-17 10:14:30 -04:00
Joe Bowser
d3ee322d7c
Updating Hello World
2012-10-15 14:19:46 -07:00
Joe Bowser
7ec20e7752
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-15 13:52:35 -07:00
Joe Bowser
08dfb13dbf
Updating Android to 2.2.0rc1
2012-10-15 13:52:19 -07:00
Andrew Grieve
6a5cddd907
Remove use of PluginResult.Status.NO_RESULT in GeoBroker.
...
It resolves to a no-op when KEEP_CALLBACK is set, and is therefore
confusing to use it with the new CordovaPlugin setup.
2012-10-15 14:49:47 -04:00
Andrew Grieve
dc5078306d
Remove manual catching of JSONException where possible.
...
Delegate the catching to caller instead. Related to refactoring of
Plugin->CordovaPlugin.
2012-10-15 14:24:03 -04:00
Andrew Grieve
1bc032853c
Fix contact mobile-spec tests that were failing.
...
Also move contact operations back to background threads.
2012-10-15 14:21:15 -04:00
Joe Bowser
e562e4e7b9
Removed overrides, fixed CB-1620
2012-10-12 14:43:46 -07:00
Joe Bowser
0ffffa9029
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-10-12 14:26:57 -07:00
Joe Bowser
0f2303e8d5
This time, we fixed the back button for real! CB-1658
2012-10-12 14:26:36 -07:00
Braden Shepherdson
31f7f8149e
Merge branch 'master' into cordovaplugin_update
2012-10-12 17:05:47 -04:00
Braden Shepherdson
fe1f57c23f
Port Storage to use CordovaPlugin.
2012-10-12 17:05:35 -04:00
Braden Shepherdson
29a0b010da
Port SplashScreen to CordovaPlugin. Untested, no tests for it.
2012-10-12 17:00:14 -04:00
Braden Shepherdson
621e1163f8
Port Notification to CordovaPlugin.
2012-10-12 16:58:15 -04:00
Braden Shepherdson
17d64cfcbe
Port NetworkManager to CordovaPlugin.
2012-10-12 10:05:26 -04:00
Braden Shepherdson
7379d2135d
Port Globalization to CordovaPlugin.
2012-10-11 18:32:35 -04:00
Braden Shepherdson
c55fd06b99
Fix mountain of trailing whitespace.
2012-10-11 18:28:36 -04:00
Braden Shepherdson
d81727a08c
Port Location listeners and plugin to CordovaPlugin.
2012-10-11 18:26:19 -04:00
Braden Shepherdson
b582e1592a
Port FileUtils to CordovaPlugin.
2012-10-11 16:29:02 -04:00
Braden Shepherdson
dd8533a320
Port Device to use CordovaPlugin.
2012-10-11 16:11:20 -04:00
Braden Shepherdson
d72a8cbf89
Port Contacts to CordovaPlugin.
2012-10-11 16:03:49 -04:00
Braden Shepherdson
fe0876ded6
Port CompassListener to CordovaPlugin.
2012-10-11 15:50:31 -04:00
Braden Shepherdson
fa15763c5d
Port Capture to use CordovaPlugin. Untested beyond compiling!
2012-10-11 15:50:04 -04:00
Braden Shepherdson
205215d409
Port CameraLauncher to CordovaPlugin.
2012-10-11 11:34:46 -04:00
Braden Shepherdson
076bfcde87
Port BatteryListener to CordovaPlugin.
2012-10-11 11:21:02 -04:00
Braden Shepherdson
10510484b5
Port AudioHandler and AudioPlayer to CordovaPlugin.
...
Had to adapt AudioPlayer because CordovaPlugin doesn't define
sendJavascript.
2012-10-11 11:09:12 -04:00
Braden Shepherdson
e1dea5b4d3
Port AccelListener to CordovaPlugin.
...
Also using the MessageQueue to handle the sensor start timeout, instead
of a Thread.sleep() loop. This allows the listener to run synchronously.
2012-10-11 10:02:46 -04:00
Braden Shepherdson
891f8d00cf
Cleanups to CordovaPlugin.
2012-10-10 14:11:13 -04:00
Joe Bowser
0d409f0fe3
Setting browser history as the default. This was supposed to be done earlier, sorry about that. CB-1611
2012-10-10 09:45:55 -07:00
alunny
4e0c8982c9
get commons-codec from apache archive, not osuosl
...
prevents the issue where, when a new release of commons-codec comes out,
`bin/create` stops working
2012-10-08 15:12:13 -07:00
Joe Bowser
a741c66c97
Updating Native Tests to correspond with changes - CB-1580
2012-10-03 15:56:49 -07:00
Simon MacDonald
3e6a7cbdf5
CB-1574: On Android 4.1 events are only sent on every second menu button press
2012-10-03 14:41:10 -04:00
Simon MacDonald
5d34aa0afe
Guard against null pointer exception in ES File Explorer being used to get a picture using DATA_URL
2012-10-03 11:31:58 -04:00
Simon MacDonald
979ae94698
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/incubator-cordova-android
...
Just brain dead today.
2012-10-02 14:40:48 -04:00
Simon MacDonald
8d7b85b26a
CB-1573: Can we remove framework/src/org/apache/cordova/TempListener.java
2012-10-02 14:40:24 -04:00
Simon MacDonald
686977a986
CB-1573: Can we remove framework/src/org/apache/cordova/TempListener.java
2012-10-02 14:38:02 -04:00
Andrew Grieve
9c6c782146
Apply trustEveryone to the current connection and not globally.
...
Fixes https://issues.apache.org/jira/browse/CB-1565
2012-10-02 11:45:20 -04:00
Andrew Grieve
ca9539b5b6
More tweaks to FileTransfer.
...
Some clean-up and moved IO out of critical sections.
2012-10-02 11:45:20 -04:00
Andrew Grieve
ff25be8839
Fix warnings in FileTransfer.java
2012-10-02 11:45:20 -04:00
Simon MacDonald
d1ab1b59be
Remove @Override from interface methods
...
In Java 6 you will get an error in Eclipse if your put the @Override annotation on a method of an interface. You are not really over riding the methods you are implementing it. This is an undocumented change in Java 6. Just cleaning up our usage of this so some project problems got away.
Note: Things will build fine using 'ant jar' even with the @Override's.
2012-10-02 11:42:15 -04:00
Andrew Grieve
05bc1865a6
Change FileTransfer to use the new plugin signature.
...
Fixes slow abort(): https://issues.apache.org/jira/browse/CB-1516
Fixes abort() race condition: https://issues.apache.org/jira/browse/CB-1532
2012-10-02 10:14:52 -04:00
Andrew Grieve
6e6e0275ad
Create CordovaPlugin.java and make Plugin.java a compatibility shim.
...
The intent of this is to encourage plugins to execute synchronously
when appropriate by not defaulting to using a background thread.
This will also encourage plugins that do run asynchronously to run some
of its logic synchronously before dispatching to a background thread.
This is required for tasks that can be abort()ed, such as
FileTransfer. (CB-1532)
This also makes it possible to lazily parse the JSON args, which is
important for large payloads. (CB-1530)
2012-10-02 10:14:30 -04:00
Andrew Grieve
ec3c5b2ca2
Delete IPlugin interface.
2012-10-02 10:03:06 -04:00
Andrew Grieve
5289d569b0
Fix NPE caused by NetworkManager sending update before JS is ready.
...
This was happening for me when the device has been sleeping long
enough to turn its networking off, and I start an app via adb.
2012-10-02 10:02:42 -04:00
Andrew Grieve
6f873ff6b5
Fix default bridge mode being PRIVATE_API (should be ONLINE_EVENTS).
...
This was broken when HANGING_GET mode was removed.
2012-10-02 10:02:42 -04:00
Simon MacDonald
467cbe972c
Fixing merge conflict
2012-10-02 09:54:36 -04:00
Simon MacDonald
bfd1bfe9f0
CB-1564: DroidGap.loadUrl follows a path that never checks the white list
...
Whoops, I needed to do more testing. This looks like the trick but it could use a review.
2012-10-02 09:52:30 -04:00
Simon MacDonald
3404a6c699
CB-1564: DroidGap.loadUrl follows a path that never checks the white list
2012-10-01 16:03:28 -04:00
Anis Kadri
17a4b5155e
CB-1359 set target SDK to the highest available
2012-09-28 18:18:11 -07:00
Anis Kadri
d406e2ed22
merging conflict with create script
2012-09-28 17:43:26 -07:00
Anis Kadri
0bfc9935b2
CB-1359 simplifying API_LEVEL command
2012-09-28 17:41:12 -07:00
Andrew Grieve
64c6cbe303
Update JS snapshot after deleting callback server.
2012-09-28 14:37:08 -04:00
Andrew Grieve
2245db3e80
Delete CallbackServer.java
2012-09-28 14:37:08 -04:00
Andrew Grieve
6f19a50c98
Update .classpath file to use commons-codec-1.7.jar
2012-09-28 14:27:38 -04:00
Andrew Grieve
c7ce9598a8
Remove unused async arg from PluginManager.exec().
2012-09-28 14:10:19 -04:00
Andrew Grieve
afcdccf783
Add an app-wide thead pool to CordovaInterface.
2012-09-28 14:10:13 -04:00
Joshua Granick
1bf12842ca
Allow for predefined ANDROID_BIN value, fix for paths with spaces
2012-09-27 14:05:01 -04:00
Simon MacDonald
da8fbee256
Merge branch 'master' of http://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-27 11:17:04 -04:00
Simon MacDonald
4021f26e76
Globalization plugin should return an error object and not a code
2012-09-27 11:16:43 -04:00
Anis Kadri
8eab8438cf
CB-1468 fixing paths with spaces
2012-09-26 16:22:35 -07:00
Simon MacDonald
1b4096b01d
Guard against null pointer exception in ES File Explorer being used to get a picture
2012-09-26 15:52:37 -04:00
Marcel Kinard
54caa6e438
Fail the build gracefully with helpful error messages if the local.properties
...
file is missing, or if the commons-codec jar is missing, or if ant is not at
the minimum required version. Also add a little more detail to
README.md.
2012-09-25 13:09:40 -04:00
Braden Shepherdson
486eb149f2
Merge branch 'master' into plugin_reset
2012-09-24 14:38:17 -04:00
Braden Shepherdson
faa034a205
Don't unregister the listener if it was never registered.
2012-09-24 14:37:04 -04:00
Braden Shepherdson
2cd3ebc7a8
Fix NPE on reset with undefined NetworkListener.
2012-09-24 14:36:29 -04:00
Braden Shepherdson
7e3af6c235
Add onReset() to TempListener.
2012-09-24 14:21:18 -04:00
Braden Shepherdson
dd4de16d1d
Add onReset to Storage.
2012-09-24 14:21:05 -04:00
Braden Shepherdson
ba8577fa5f
Add onReset() to NetworkManager.
2012-09-24 14:20:52 -04:00
Braden Shepherdson
6192319f8c
Add onReset() to GeoBroker.
2012-09-24 14:20:36 -04:00
Andrew Grieve
fed368d553
Set the total field for FileTransfer upload progress events.
...
This also removes an incorrect assumption that content: InputStreams
will be FileInputStreams.
2012-09-24 11:50:55 -04:00
Braden Shepherdson
20c885418e
Add onReset to CompassListener.
2012-09-24 11:40:06 -04:00
Braden Shepherdson
9318ee30bd
Add onReset to BatteryListener.
2012-09-24 11:35:35 -04:00
Braden Shepherdson
8b6c9574df
Make AudioHandler stop and clean up on onReset()
2012-09-21 15:33:56 -04:00
Braden Shepherdson
313148136a
Make AccelListener stop listening onReset()
2012-09-21 14:51:45 -04:00
Joe Bowser
6e1fdc77ae
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-21 11:51:12 -07:00
Joe Bowser
2a9582ebb1
Fixing CB-1521 - NullPointerException on Default Jellybean Emulator
2012-09-21 11:48:33 -07:00
Braden Shepherdson
dd1cd46719
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-21 13:38:42 -04:00
Braden Shepherdson
9961d9e54d
Add onReset to Plugin API, call on navigate.
2012-09-21 12:00:14 -04:00
Andrew Grieve
7eb12110d1
Add a work-around for a FileTransfer bug on 2.3 only.
...
Fixes https://issues.apache.org/jira/browse/CB-1413
2012-09-21 11:54:24 -04:00
Simon MacDonald
3d62744601
CB-1512: FileTransfer API and Mojolicious
2012-09-21 11:05:54 -04:00
Andrew Grieve
17af417235
Fix up some minor FileTransfer bugs / warnings.
...
- Catch abort error in download
- Fix up merge conflicts
- Fixed a couple of compiler warnings
2012-09-20 23:39:42 -04:00
Andrew Grieve
df9d314361
Update JS to include FileProgress abort & progress support.
2012-09-20 23:39:09 -04:00
Brion Vibber
610e0c984a
Add progress callbacks, abort for FileTransfer.upload and FileTransfer.download
2012-09-20 21:53:30 -04:00
Joe Bowser
3688fca126
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-20 16:27:49 -07:00
Joe Bowser
9bc89c784f
Switching to ONLINE_EVENT
2012-09-20 16:27:44 -07:00
Anis Kadri
79682f5d52
updating windows create script test
2012-09-20 16:17:59 -07:00
Joe Bowser
c206ac0335
Fixing CB-1504
2012-09-19 13:47:09 -07:00
Joe Bowser
34840175f3
Adding headers and converting tabs to spaces
2012-09-19 11:12:55 -07:00
Simon MacDonald
6312457425
CB-1469: Add Globalization Plug-in for Android
2012-09-19 14:08:52 -04:00
Anis Kadri
f71e664952
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-18 14:45:20 -07:00
Anis Kadri
80d559f17e
removing verbosity
2012-09-18 14:45:04 -07:00
Joe Bowser
772aedc263
Fixing CB-1462, there's a difference betwene Global and Local listeners:
2012-09-18 14:24:48 -07:00
Anis Kadri
45d7c124c8
fixing windows appinfo.jar
2012-09-18 14:11:22 -07:00
Joe Bowser
73abb20b3d
Resolving CB-1496, this is faster than a pull request
2012-09-18 12:57:18 -07:00
Andrew Grieve
0baf104a75
Fix a deadlock in CallbackServer.java.
...
-Manifested when running mobile spec. Was caused by CallbackServer
obtaining lock #1 then #2 , while other thread obtained #2 then #1 .
2012-09-18 13:51:31 -04:00
Andrew Grieve
302d51cdfd
Updated JS snapshot.
2012-09-18 13:25:18 -04:00
Andrew Grieve
d3cbfd5467
Add a flag to disable exec() chaining for benchmarking.
...
- Also moved ENABLE_LOCATION_CHANGE_EXEC_MODE to NativeToJsMessageQueue
so that all exec() related flags are in one place.
2012-09-18 13:24:38 -04:00
Andrew Grieve
9e3e7e1820
Remove TODO comment about calling webView from non-ui thread.
...
I tried it and it turned out to be a bit slower instead of faster.
2012-09-18 13:24:37 -04:00
Andrew Grieve
18893bf6cd
Use a thread pool when executing async plugin operations.
2012-09-18 13:24:37 -04:00
Andrew Grieve
f53161d6f5
Always send as many messages native->JS in one payload as possible.
2012-09-18 13:24:37 -04:00
Andrew Grieve
4c9a571106
Add constant to disable non-exec() messages in Native->JS bridge.
2012-09-18 13:24:37 -04:00
Andrew Grieve
365edcad16
Optimize encoding of PluginResults within NativeToJsMessageQueue.
...
Also included in this refactoring:
-Better use of StringBuilder when encoding messages
-Defers actual encoding of messages until they are popped.
-Add a pause/unpause of message queue so that all pending messages will
be sent to JS in order at the end of a PROMPT or JS_OBJECT context.
Before they may not have been sent in order.
-Tweaked LOAD_URL so that it always happens on the UI thread (avoids
log warning).
2012-09-18 13:24:37 -04:00
Andrew Grieve
ae9047a708
Refactor how PluginResults are sent to JS.
...
There is now a sendPluginResult() as well as a sendJavascript() on
CordovaWebview.
sendPluginResult() sends the result so that it can be parsed without
using eval(), when the active bridge allows it.
2012-09-18 13:24:37 -04:00
Andrew Grieve
9c0e58df8d
Disable debug logging of loadUrl for javascript URLs.
...
When using LOAD_URL bridge mode, this is far too verbose.
2012-09-18 13:24:37 -04:00
Andrew Grieve
ee34f11c29
Set the initial network-available state on start-up.
...
I've been assuming that it always starts as true, but this will ensure
that it does.
2012-09-18 13:24:37 -04:00
Andrew Grieve
6ca6d88bff
Fix NPE when using LOCATION_CHANGE exec bridge.
2012-09-18 13:24:36 -04:00
Andrew Grieve
65a397fb63
Abstract JS->Native API calls into a class.
...
-setNativeToJsBridgeMode() and poll() can now be used via the JS interface
exported via addJavascriptInterface.
-prompt() now forwards calls to this class so that the logic will be the
same whether prompt() or the JS object is used.
2012-09-18 13:24:36 -04:00
Andrew Grieve
0a669077fb
Fix warning about .close() not being called in FileUtils.
2012-09-18 13:23:26 -04:00
Simon MacDonald
451688a12e
CB-1126: Splashscreen
2012-09-18 11:49:11 -04:00
Simon MacDonald
d181d89dd2
CB-1411: Add trustAllHosts option to FileTransfer.download on Android
2012-09-17 22:09:52 -04:00
Simon MacDonald
ac14b0d73b
CB-1481: ContactName - name.formatted returns with a trailing white space
2012-09-17 22:09:51 -04:00
Simon MacDonald
0f42c65792
CB-1321: IMS types returning as other
2012-09-17 22:09:51 -04:00
Simon MacDonald
37b3e980dc
CB-1362: We should add android:hardwareAccelerated=true to the template manifest.xml
2012-09-17 22:09:51 -04:00
Simon MacDonald
eb49e011e2
CB-1405: navigator.language
2012-09-17 22:09:51 -04:00
Josh Soref
e0a73f72ee
Spelling: throw
2012-09-17 22:09:51 -04:00
Josh Soref
e217ab28c5
Spelling: success
2012-09-17 22:09:51 -04:00
Josh Soref
ca583865ea
Spelling: substituted
2012-09-17 22:09:51 -04:00
Josh Soref
5e7efde311
Spelling: retrieve
2012-09-17 22:09:51 -04:00
Josh Soref
2c7c13420b
Spelling: polyfill
2012-09-17 22:09:51 -04:00
Josh Soref
ac4fc3e54e
Spelling: occurred
2012-09-17 22:09:51 -04:00
Josh Soref
46db36a05e
Spelling: necessary
2012-09-17 22:09:51 -04:00
Josh Soref
3d073be990
Spelling: milliseconds
2012-09-17 22:09:51 -04:00
Josh Soref
1bc49fe450
Spelling: explicitly
2012-09-17 22:09:51 -04:00
Josh Soref
1f7fe9abcc
Spelling: definition
2012-09-17 22:09:51 -04:00
Josh Soref
5217abf57a
Spelling: containing
2012-09-17 22:09:51 -04:00
Josh Soref
2ecbde891a
Spelling: conjunction
2012-09-17 22:09:51 -04:00
Josh Soref
bf7fc66646
Spelling: comparisons
2012-09-17 22:09:51 -04:00
Josh Soref
5a94b38e2f
Spelling (en-us): behavior [slightly more instances of this spelling than the British]
2012-09-17 22:09:51 -04:00
Josh Soref
1bc55f5937
Typo stray paren
2012-09-17 22:09:51 -04:00
Josh Soref
04c9542f94
Spelling: application
2012-09-17 22:09:50 -04:00
Josh Soref
17e739f68a
Spelling: aperture
2012-09-17 22:09:50 -04:00
Josh Soref
4f5515fde3
Spelling: after
2012-09-17 22:09:50 -04:00
Josh Soref
ae3ba129ea
Spelling: activities
2012-09-17 22:09:50 -04:00
Josh Soref
6b92a0fff7
Brand: cordova
2012-09-17 22:09:50 -04:00
Anis Kadri
d859bb8e67
adding windows createAppInfoJar
2012-09-17 17:14:25 -07:00
Fil Maj
f12bbf71ed
Added license headers to test java files
2012-09-17 14:25:12 -07:00
Fil Maj
b723beb545
[CB-1484] License headers audit
2012-09-17 14:19:02 -07:00
Joe Bowser
47daaaf14f
Fixing up the commons-codec issue - CB-1483
2012-09-17 13:26:23 -07:00
Joe Bowser
9ba5bae34d
Updating commons-codec
2012-09-17 09:44:47 -07:00
Philipp Klose
dbfa2d7994
Change bin/create to use bash as shell
...
Fixes script on older Ubuntu versions.
2012-09-17 11:09:53 -04:00
Joe Bowser
8134f86d1f
Fixing CB-1467
2012-09-14 11:42:16 -07:00
Joe Bowser
5c60b09bf4
Updating the manifest so that it is correct
2012-09-13 11:46:31 -07:00
Joe Bowser
20a19d67d0
Put this on the wrong branch
2012-09-13 11:44:09 -07:00
Joe Bowser
311a2f6023
Updating JS with feeling - See CB-1420
2012-09-12 12:58:30 -07:00
Simon MacDonald
59a3cf93e6
Tagging 2.1.0
2012-09-12 11:44:53 -04:00
Simon MacDonald
a42f095cef
CB-1409: Clicking the menu button crashes Jellybean
2012-09-11 09:04:42 -04:00
Simon MacDonald
a29340523f
CB-1293: Camera.getPicture crashes when selecting from a Picasa album on Android
2012-09-07 15:20:31 -04:00
Joe Bowser
5ad7a7c014
Forgot to put back echo
2012-09-06 17:12:36 -07:00
Joe Bowser
c6fa7e4aad
Reverting to the previously known to work config.xml, we'll introduce the new format in 2.2
2012-09-06 15:47:53 -07:00
Joe Bowser
d4b248fbe3
Merge conflict on the plugins
2012-09-06 15:26:38 -07:00
Joe Bowser
48881d081a
Adding support for data uri
2012-09-06 12:19:42 -07:00
Joe Bowser
331024414e
Fixed the backbutton issues with the keyboard without causing issues with the menu button so far
2012-09-05 16:10:48 -07:00
Simon MacDonald
9d0c5349bb
CB-1304: Update PhoneGap References to Apache Cordova
2012-09-03 14:31:35 -04:00
Simon MacDonald
dc40d8afac
CB-1335: Update www/ Application
2012-09-03 13:42:15 -04:00
Simon MacDonald
005877b4b8
CB-1303: Remove References to the Callback Project
2012-09-03 13:22:07 -04:00
Simon MacDonald
774d21747a
Tagging 2.1.0rc2
2012-08-31 16:44:53 -04:00
Simon MacDonald
12e5b39c05
Fixing failing 'should return MediaError for bad filename' Media test case
2012-08-31 12:50:23 -04:00
Simon MacDonald
4d5e452ece
CB-1358: Getting Force Close in incoming Cal while recording the Audio?
2012-08-31 12:45:01 -04:00
Michael Brooks
1ba3ecbef3
[ #1301 ] Remove releasenotes.md
...
The file has not been updated in 5 months. If we choose to have
platform-level CHANGELOG's then it should be started across all
projects and named consistently as CHANGELOG.
2012-08-30 16:08:16 -07:00
Michael Brooks
db6695cb02
[ #1305 ] Remove guides/ directory
...
The guides are now documented in incubator-cordova-docs.
2012-08-30 15:34:57 -07:00
Simon MacDonald
b3f5e039f2
Fixing 'FileTransfer.download() - should handle unknown host' failing mobile-spec test case
2012-08-30 17:01:16 -04:00
Andrew Grieve
c3e17fb185
Fix broken file upload in mobile-spec tests (CB-1290).
...
The explicit transfer-encoding: chunk that was added breaks in
fixed-length streaming mode. It is, however, still required to
work-around an OOM bug in HTTPS mode. The new logic works for both the
mobile-spec and the HTTPS large-file test that I used before.
Commit adding the header: 999c548e6e
2012-08-30 13:37:19 -04:00
macdonst
f7ae7fe43a
CB=1293: Camera.getPicture crashes when selecting from a Picasa album on Android
2012-08-29 12:46:12 -04:00
macdonst
e07822350e
CB-1289: The menubutton event fires twice
2012-08-28 11:55:12 -04:00
Andrew Grieve
07439ff99c
Refactor to avoid adb warnings of VFY: on start-up.
2012-08-27 15:05:20 -04:00
macdonst
f111c245c1
Tagging 2.1.0rc1
2012-08-24 16:44:18 -04:00
Anis Kadri
c3502da4a0
arg forgot dest file
2012-08-24 13:40:23 -07:00
Anis Kadri
4012108d48
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-08-24 12:15:02 -07:00
Anis Kadri
4a0605e09b
CB-1235 Fixing Android create script on Windows
2012-08-24 12:14:58 -07:00
Andrew Grieve
250380d73e
Implement LOAD_URL exec bridge.
...
Also refactors PluginManager.exec to return the PluginResult instead of
a string.
2012-08-24 14:19:41 -04:00
Andrew Grieve
b30f5d782d
Fix JS timers being disabled on pause and never re-enabled.
...
Was broken in this change:
b234b0bded
2012-08-23 15:35:08 -04:00
macdonst
b00cd9b557
Updating the .gitignore file
2012-08-23 12:38:40 -04:00
Braden Shepherdson
e11f8f646b
Greatly improve speed of fetching contacts.
...
We were selecting every column in a fairly wide table before. This code fetches
only those columns necessary to populate the data requested by the Javascript
code. In experiments with coworkers' and my own contact lists, the time to fetch
~1440 contacts has gone from over 40 seconds to less than 10 seconds. I have not
tested with fewer than 1400 contacts, but I expect at least a small improvement.
2012-08-22 10:46:32 -04:00
Andrew Grieve
92b1de8cf8
Update cordova.android.js to pull in exec changes.
2012-08-22 09:50:40 -04:00
Andrew Grieve
bbafe53a2b
Added Native-JS bridge mode that uses private WebView APIs.
2012-08-22 09:46:30 -04:00
Andrew Grieve
e239fd970f
Implement the online events based Native->JS bridge.
2012-08-22 09:46:30 -04:00
Andrew Grieve
7fa4515c28
Implements the LOAD_URL Native->JS bridge mode
...
(without keyboard work-around)
2012-08-22 09:46:30 -04:00
Andrew Grieve
b40eb0a454
Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient.
2012-08-22 09:46:30 -04:00
Andrew Grieve
5e3e9ddb8e
Refactor Native->JS messaging logic into its own class.
...
This will make it easy to add more modes.
This also adds logic to set the move via a prompt() from JS.
2012-08-22 09:46:30 -04:00
macdonst
a9a5284a67
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-08-20 16:24:09 -04:00
macdonst
afe504dbbf
CB-1267: Reuse Media object for recording
2012-08-20 16:23:19 -04:00
Andrew Grieve
0c484ddcf7
Make Eclipse recognize framework as a library project
...
Instructions are here:
http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
2012-08-20 14:22:48 -04:00
macdonst
8d0e80620a
CB-1264: Media.stop() puts media into an unplayable state
2012-08-20 12:06:39 -04:00
Joe Bowser
1d28506b09
Fix for CB-1257
2012-08-17 14:35:08 -07:00
Andrew Grieve
1b33dbe2ae
Provide an addJavascriptInterface() exec object.
...
-Disabled for 2.3 emulator to avoid a crash bug.
2012-08-17 11:15:19 -04:00
Andrew Grieve
80654c059d
Add an Echo plugin for benchmarking purposes.
2012-08-17 11:10:16 -04:00
Andrew Grieve
999c548e6e
Fix FileTransfer running out of memory over HTTPS (CB-312).
...
Setting the Transfer-Encoding header fixes running out of memory when
using HTTPS.
This CL also adds a bit of logging so that upload progress is logged.
2012-08-16 10:30:04 -04:00
Andrew Grieve
e42913ae8a
Fix API Level linter errors in CordovaWebView.java
2012-08-16 09:36:43 -04:00
Joe Bowser
ee07cbecba
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-08-14 10:57:21 -07:00
Joe Bowser
fffaa9bced
Forgot to add the Apache headers on IceCreamCordovaWebViewClient.java
2012-08-14 10:56:54 -07:00
macdonst
6195b2c99d
CB-930: DirectoryReader creates null error code for inaccessible directory
2012-08-14 13:50:59 -04:00
Steren Giannini
06aafc96c9
Play <video> tags from the Webview in a Fullscreen video player.
...
Code from the Froyo Android Browser was adapted to support <video> elements in Cordova. The WebView creates a "CustomView" (a video player) that is displayed fullscreen.
It uses API level 7, work has to be done to support lower version.
Tested on Androdi 2.2: works
Tested on Android 4.1: doesn't work. It seems videos are handled differently (without the use of "Custom views"). To make video playing work on Android 4, add the android:hardwareAccelerated="true" attribute to the main activity of the AndroidManifest.
2012-08-14 18:13:35 +02:00
macdonst
2dc0727e36
CB-1151: FileTransfer.download decodes the URL, resulting in a 404 error
2012-08-13 15:43:55 -04:00
macdonst
a219feaa60
Downgrade min sdk version of sample app
2012-08-13 13:30:27 -04:00
macdonst
f3a09da340
Modify min sdk version in AndroidManifest.xml
2012-08-13 13:27:34 -04:00
macdonst
946e345a3f
Add service methods to legacy ctx varialbe
2012-08-10 13:14:42 -04:00
macdonst
6cb8d11b22
CB-1196: No onSuccess callback after a complete play of the local mp3 file
2012-08-10 10:53:52 -04:00
macdonst
fdcf9c5327
Reapply: CB-1211: Media record uses a .mp3 extension when it is a .3gp file
2012-08-10 09:27:37 -04:00
doggerelverse
45c714cbb5
reset of seekOnPrepared changed to properly reset only once playback has begun
2012-08-09 14:18:55 -07:00
macdonst
7352a309a0
CB-1217: Clicking back button does not dismiss navigator.notification.alert() dialog
2012-08-09 10:54:35 -04:00
Andrew Grieve
b297fe6f59
Fix a NPE in GeoBroker when there is no previous location.
2012-08-08 23:39:02 -04:00
Evgeni Petrov
e575212c49
GeoBroker checks if location service avialable for device first.
2012-08-08 23:23:01 -04:00
macdonst
c52dc10c9e
CB-1212: When camera is started, and then cancelled with no photo, attempt to read exif data results in fatal error
2012-08-08 15:53:48 -04:00
macdonst
d35c913249
CB-1211: Media record uses a .mp3 extension when it is a .3gp file
2012-08-08 15:34:26 -04:00
macdonst
9bac59b952
CB-1206: file uri not handled correctly by Media Player
2012-08-08 15:33:01 -04:00
macdonst
5016253922
Update to use latest Android SDK
2012-08-07 15:40:05 -04:00
Joe Bowser
03893071fc
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-08-03 14:08:14 -07:00
Joe Bowser
d3dc94c04b
CB-578 - Adding a test of pause and resume to make sure that they're being called. Need to elaborate on this
2012-08-03 14:07:01 -07:00
Andrew Grieve
af0feabb6a
Prefer setFixedLengthStreamingMode over setChunkedStreamingMode in FileTransfer.
...
setFixedLengthStreamingMode causes the Content-Length header to be set,
which some servers require.
We now use setChunkedStreamingMode only on Eclair devices
since there is a bug with setFixedLengthStreamingMode in that version
of the OS.
2012-08-03 12:29:37 -04:00
Joe Bowser
81ab0a414f
I forgot that Jellybean has some wacky changes on the onKeyUp and onKeyDown events, fixing CB-1181
2012-08-02 12:51:48 -07:00
Joe Bowser
ecd6ca0172
Moving the fix for # and ? to a new class to fix CB-995
2012-07-31 16:16:57 -07:00
Joe Bowser
db7ee192f7
This was a red herring. There was an XML error on the example when compared with master
2012-07-31 12:20:31 -07:00
Joe Bowser
2ec0b601fa
Commenting out this past code, turns out this breaks more things than it fixes: CB-1101
2012-07-31 11:55:01 -07:00
Joe Bowser
79feb6d5d2
CB-1101: Specifying Jellybean means that we have to override the default CORS policy
2012-07-31 11:48:38 -07:00
Joe Bowser
8013b760e3
Adding functionality to read a config.xml file with plugin details implemented inside of it
2012-07-30 16:31:33 -07:00
Joe Bowser
a29b8e5b36
Caught error with the back button again. backHistory actually goes back in history, used canGoBack() instead
2012-07-30 13:55:22 -07:00
Anis Kadri
9ef487a7a5
fixing replace for mountain lion
2012-07-28 08:13:31 -07:00
Anis Kadri
563fa46ba4
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-07-27 18:30:59 -07:00
Anis Kadri
7865c06863
CB-1148 fix for directories with spaces
2012-07-27 18:30:39 -07:00
Andrew Grieve
3d53b9244d
Adds FileTransfer support for upload headers.
...
-Support previously existed via options.params.headers. This CL
deprecates this (undocumented) way of adding headers and adds support
for options.headers.
-This also adds support for multiple headers via:
options.headers = {"Name": ["Value1", "Value2"]}.
2012-07-27 20:54:31 -04:00
Joe Bowser
f2afa4dd50
Tweaking the Android Manfest to cope with new target changes: CB-1147
2012-07-27 13:31:25 -07:00
Joe Bowser
893ecec55e
Minor fix to deal with weird keyboard focus issues and the back button. CB-1146
2012-07-27 10:33:38 -07:00
Joe Bowser
401584dbd8
Throwing code over the fence for CB-1128, We need a Samsung Galaxy S running 2.3.5 to confirm this fix
2012-07-25 12:54:03 -07:00
Joe Bowser
b234b0bded
Utility Methods based on Feedback
2012-07-24 15:54:01 -07:00
Joe Bowser
b9b2c6a013
Updating sample project
2012-07-23 10:43:23 -07:00
Joe Bowser
1d2efa0d25
Fixing leaking sockets
2012-07-20 16:02:43 -07:00
Joe Bowser
93ec092eaf
Forgot to add the example app. Works with the script
2012-07-20 09:57:26 -07:00
Joe Bowser
29ae492983
Upping the version to 2.0.0
2012-07-18 16:58:03 -07:00
Joe Bowser
b9f6a59a20
Fix for CB-1085
2012-07-18 14:37:45 -07:00
Joe Bowser
d74551216f
Throwing code over the fence to fix CB-1087, I can't repro on my Galaxy Nexus
2012-07-18 14:30:45 -07:00
Andrew Grieve
d4302ae51b
Remove cordova.xml and plugins.xml from framework/res/xml.
...
They have been superseded by config.xml, and having them stick around
was confusing.
2012-07-16 15:06:12 -04:00
Joe Bowser
9d5fb0b201
Tagging 2.0.0rc1
2012-07-13 15:46:09 -07:00
Fil Maj
e0a5fe4002
[CB-574] Added backbutton automated unit test for android.
2012-07-13 14:57:40 -07:00
macdonst
f9d9a0a4bd
Adding deprecation notice to LegacyContext
2012-07-13 15:36:56 -04:00
Joe Bowser
78f0c7b119
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into audio
2012-07-12 14:41:56 -07:00
Fil Maj
c6d8343de2
[CB-1035] Including newest JS built based on refactored common device module.
2012-07-12 13:37:08 -07:00
Anis Kadri
0ccd11e587
CB-1031 android create script fails
2012-07-11 14:00:42 -07:00
Joe Bowser
b486711d68
Combining plugins.xml and cordova.xml to make config.xml
2012-07-11 11:23:31 -07:00
Fil Maj
2eb4c5e960
[CB-1022] Reverted nanoTime back to currentTimeMillis. Updated mobile-spec tests as well. This passes all accel tests.
2012-07-11 10:26:14 -07:00
Fil Maj
85aa740c98
[CB-481] Removed todo comment introduced by bryce, clarified what is going on
2012-07-11 09:35:29 -07:00
Joe Bowser
6415848383
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into audio
2012-07-11 09:14:04 -07:00
macdonst
beb9460538
CB-952: Android showSplashScreen crashes
2012-07-10 20:52:07 -04:00
Joe Bowser
c030770be7
Working with Lorin's change
2012-07-10 14:37:26 -07:00
macdonst
0180342dff
CB-993: Android plugin problems upgrading to 1.9.0
2012-07-10 16:26:52 -04:00
macdonst
b97748d3dc
CB-1005: Can not remove contact phonenumber values
2012-07-10 11:25:20 -04:00
Joe Bowser
9d4977db00
Fixing bug on ICS where the super.onKeyDown wasn't being called
2012-07-09 14:42:29 -07:00
macdonst
f095284faa
CB-1016: Zero width or height in getPicture throws java.lang.ArithmeticException
2012-07-07 22:19:55 -04:00
macdonst
401c2f42f9
Modify PluginResult(status) so it generates a JSON string that works with JSON.parse()
2012-07-06 17:39:04 -04:00
macdonst
eb0348d47c
CB-1014: Out of Memory error when getting image from photo library
2012-07-06 12:37:08 -04:00
macdonst
1f46240ba9
CB-999: When getting images from the PHOTOLIBRARY apply the correctOrientation fix
2012-07-05 16:04:47 -04:00
macdonst
14870726e0
CB-1008: Camera with targetHeight, targetWidth loses image aspect ratio
2012-07-05 15:32:55 -04:00
macdonst
c7d6a2eecb
CB-992: Camera tries to add temp photo to gallery
2012-07-05 14:02:20 -04:00
macdonst
ce61eb2174
Implementing CordovaInterface.getContext in test folder classes
2012-07-03 11:36:04 -04:00
macdonst
f3df21ef0a
Fix mis-spelling in upgrade guide
2012-07-03 10:33:48 -04:00
macdonst
5eb554e008
CB-993: Android plugin problems upgrading to 1.9.0
...
The DroidGap.getContext() method causes an infinite loop and eventually a stack overflow error.
2012-07-02 16:37:14 -04:00
macdonst
e5e7c3fad3
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-29 15:55:34 -04:00
macdonst
2a8b9ab75e
Tagging to 1.9.0
2012-06-29 15:55:03 -04:00
Fil Maj
c8f0ffb42f
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-29 09:37:59 -07:00
Fil Maj
b3e68b96cf
Removing CordovaWebView Guide; its going into the docs
2012-06-29 09:37:31 -07:00
macdonst
ae7a550a09
Only load Exif information if necessary
2012-06-29 11:31:33 -04:00
Anis Kadri
e069bbb800
CB-937 fixing debug for windows
2012-06-28 17:11:21 -07:00
Anis Kadri
17ff6be6a9
CB-937 fixing debug
2012-06-28 17:08:32 -07:00
Anis Kadri
d42489c67a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-28 16:47:18 -07:00
Lorin Beer
3ea72e5d21
added deleted tempfile setup
2012-06-28 16:17:00 -07:00
Lorin Beer
762854ad7a
changed handling of stopRecording to reflect handling of create message
2012-06-28 15:53:47 -07:00
Lorin Beer
10465066ee
Merge branches 'master' and 'dev'
2012-06-28 15:37:11 -07:00
Lorin Beer
0cf9f51816
use enums to track internal states instead of int. Fixed 'unknown state' bug with the addition of loading state. Mega commit, lost some history.
2012-06-28 15:36:28 -07:00
Lorin Beer
3d5e2340ca
update to use ordinal instead of enum value
2012-06-28 15:29:23 -07:00
macdonst
e2047afa42
Wire rotation fix to correctOrientation parameter
2012-06-28 12:00:19 -04:00
macdonst
231b39d2dc
Reset orientation exif information when photo is rotated
...
When a photo is taken in portrait mode we rotate it so it shows up properly in the webview. The Exif orientation must be reset to normal orientation (0) or the image will not display properly on desktops.
2012-06-28 12:00:19 -04:00
macdonst
dddce30368
Rotate image if taken in portrait mode
2012-06-28 12:00:19 -04:00
macdonst
e0e4ba2bd7
Fix double image problem on Samsung phones
...
On Samsung phones even if you tell the camera not to save to the photo gallery it still does. This small fix deletes the original file as it is not needed.
2012-06-28 12:00:19 -04:00
macdonst
e0eadb6b76
Using a better scaling algorithm to resize the image
...
Instead of reading the entire image into a bitmap then scaling we use the
inSampleSize option to get a close to the target width and height as possible
then we scale that smaller image.
2012-06-28 12:00:19 -04:00
macdonst
483e5dfbea
Switch getPicture from Gallery to use file instead of content resolver
2012-06-28 12:00:18 -04:00
macdonst
8aa9d8213d
Cache bust returned Image URI if saveToPhotoAlbum is false
2012-06-28 12:00:18 -04:00
macdonst
a74f71c935
Decode image from File instead of content resolver
2012-06-28 12:00:18 -04:00
macdonst
87b81e53f0
CB-978: FileTransfer.upload from a directory with a space fails
2012-06-28 11:57:06 -04:00
Joe Bowser
a2816e31c3
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-28 08:00:59 -07:00
Joe Bowser
f78af9f27b
Forgot to add it renderscript.opt.level to the project. This will fix ant issues
2012-06-28 08:00:35 -07:00
Anis Kadri
98138a0a60
log was actually doing nothing...fixing it
2012-06-27 17:55:35 -07:00
Anis Kadri
e639b6303e
updating create script to work from distro and source
2012-06-27 17:54:57 -07:00
Anis Kadri
99fb3ebe00
creating project without source
2012-06-26 17:34:19 -07:00
Joe Bowser
5829840409
Re-adding getContext because yo dawg, I heard you like contexts in your contexts
2012-06-26 11:25:17 -07:00
Anis Kadri
4699ab5500
forgot to add +x on BOOM
2012-06-25 15:03:19 -07:00
Anis Kadri
69fc7f39b7
setting +x on script files
2012-06-25 14:59:35 -07:00
Anis Kadri
510a962a52
deleting old BOOM
2012-06-25 14:56:09 -07:00
Anis Kadri
570fc3cfb2
removing echoes
2012-06-25 14:46:10 -07:00
Joe Bowser
5d211f2fa6
Might as well keep isBackbuttonOverriden on the plugin
2012-06-22 10:38:42 -07:00
Joe Bowser
dcb127c14d
Weird merge error didn't account for isBackButtonBound
2012-06-22 10:37:33 -07:00
Fil Maj
fba87de064
Removed some legacy button code that existed in droidgap + app plugins
2012-06-22 10:07:07 -07:00
Anis Kadri
576f8cba44
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-21 21:15:59 -07:00
Anis Kadri
b9f9429542
windows build/debug/launch scripts
2012-06-21 21:15:53 -07:00
Joe Bowser
bf0df9f3c3
Since we moved binding of buttons into a view, let's remove it from the Interface
2012-06-21 15:21:56 -07:00
Joe Bowser
1d458f2782
After failed rebase, need to do merge in the branch to fix this
2012-06-21 14:49:19 -07:00
Fil Maj
5ca4b4a884
Refactored cleanup in camera code a bit. Removed overrides for Scanner functionality
2012-06-21 14:22:09 -07:00
Joe Bowser
5935052ead
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-21 14:04:48 -07:00
Fil Maj
f3f2ad9144
Merging in use of uri variable between Simon and my changes.
2012-06-21 14:03:59 -07:00
Fil Maj
9d1edc4554
Fixed the 0-byte files in gallery. Also fixed exif rewriter for saveToPhotoAlbum:false JPG files. Thanks for your help Simon!
2012-06-21 14:03:59 -07:00
Fil Maj
5143b8a492
added . in front of the temp files passed into camera app. presumably this hsould stop the gallery app from picking it up
2012-06-21 14:03:59 -07:00
Fil Maj
7c67f40fc4
Tacked on file extension to camera file
2012-06-21 14:03:58 -07:00
Fil Maj
167b600135
Removing images and saving images to jail if SaveToPhotoAlbum is set to true
2012-06-21 14:03:58 -07:00
Fil Maj
6c465e25d3
merge!!!!11one
2012-06-21 14:03:58 -07:00
Fil Maj
c183d06ed1
Added MediaScanner abilities to camera launcher plugin. Now images saved to SD card should show up in the android gallery app right away
2012-06-21 14:03:58 -07:00
Joe Bowser
574731b853
Adding updated JS
2012-06-21 14:03:58 -07:00
Fil Maj
94568a4ec8
Merging in use of uri variable between Simon and my changes.
2012-06-21 12:37:44 -07:00
Fil Maj
b22c0e5b6d
Fixed the 0-byte files in gallery. Also fixed exif rewriter for saveToPhotoAlbum:false JPG files. Thanks for your help Simon!
2012-06-21 12:09:51 -07:00
Fil Maj
ab3347d25d
added . in front of the temp files passed into camera app. presumably this hsould stop the gallery app from picking it up
2012-06-21 12:09:51 -07:00
Fil Maj
66872de8e5
Tacked on file extension to camera file
2012-06-21 12:09:50 -07:00
Fil Maj
f6d4402fdc
Removing images and saving images to jail if SaveToPhotoAlbum is set to true
2012-06-21 12:09:50 -07:00
Fil Maj
9f66ccb5f3
merge!!!!11one
2012-06-21 12:09:50 -07:00
Fil Maj
b339330592
Added MediaScanner abilities to camera launcher plugin. Now images saved to SD card should show up in the android gallery app right away
2012-06-21 12:09:50 -07:00
Joe Bowser
56acd2953b
Adding updated JS
2012-06-21 11:12:30 -07:00
Anis Kadri
6f8e13297e
fixing create
2012-06-20 19:08:18 -07:00
Anis Kadri
e9a9144098
adding windows scripts
2012-06-20 19:07:41 -07:00
Joe Bowser
d1905dbee8
Fixing work-around to work for both ? and #
2012-06-20 14:16:02 -07:00
Joe Bowser
adc88f01b7
Attempt to test icecream_workaround from viafirma
2012-06-20 12:45:51 -07:00
Joe Bowser
ccf0c5db67
Got up and down mixed
2012-06-20 12:07:04 -07:00
macdonst
507554b8e8
Fixing merge error
2012-06-20 12:47:00 -04:00
macdonst
4795133daf
CB-919: Camera Plugin returned with empty error message
...
Instead of guarding against a null cursor we detect if the device is using internal or external storage to save the photos and adjust our DB queries accordingly.
2012-06-20 12:43:37 -04:00
macdonst
c1c9075962
CB-919: Camera Plugin returned with empty error message
...
Guarding against null cursor.
2012-06-20 12:20:42 -04:00
macdonst
a691e9f744
CB-910: Camera out of memory error
...
Whenever possible do not load the image into a Bitmap as it takes too much memory and blows up the Java heap.
2012-06-20 11:00:13 -04:00
macdonst
8969eed506
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-19 20:22:30 -04:00
Anis Kadri
be83095edf
updating windows create.js and creating node test
2012-06-19 20:21:45 -04:00
macdonst
5c7783305a
CB-883: SplashScreen without show() method, only hide()
2012-06-19 20:21:13 -04:00
Joe Bowser
f394f7457b
Tweaks to CordovaWebView to support other keys
2012-06-19 16:35:22 -07:00
Anis Kadri
d60806bfa6
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-19 16:28:11 -07:00
Anis Kadri
32febcb892
updating windows create.js and creating node test
2012-06-19 16:28:00 -07:00
macdonst
6c594b6f5f
Fixing merge error in FileUtils.notifyDelete
2012-06-19 11:29:00 -04:00
Joe Bowser
67d46432ed
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-18 16:01:19 -07:00
Joe Bowser
adf4166caa
Incrementing version to 1.9.0rc1 and doing some variable cleanup
2012-06-18 16:00:42 -07:00
Joe Bowser
40b9810a63
Starting the Buttons Branch
2012-06-18 11:31:53 -07:00
Lorin Beer
d9e7984279
fixed seek behaviour, but introduces a bunch of new problems
2012-06-18 10:29:56 -07:00
Lorin Beer
e5b9900d3b
halfway through refactor
2012-06-17 23:59:13 -07:00
Lorin Beer
fc3f1431b2
made internal status static variables final as well, specifically so that they can be used in switch statements
2012-06-17 22:56:22 -07:00
Lorin Beer
c8bf2f4cb1
removed audio load code from startPlaying to a private function
2012-06-17 22:37:12 -07:00
Lorin Beer
d16555ec4b
added file requirement to constructor, all references to AudioPlayer constructor had direct access to file, so this caused no other changes
2012-06-17 22:19:33 -07:00
Lorin Beer
3c9415b1c2
added create message handler, updated AudioPlayer constructor usage
2012-06-17 22:18:09 -07:00
Anis Kadri
aa45670d87
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-15 18:38:56 -07:00
Anis Kadri
e6d801a594
adding appinfo
2012-06-15 18:38:46 -07:00
Anis Kadri
0aec2be4dd
updating bash create script and node test
2012-06-15 18:36:06 -07:00
Anis Kadri
c86b618aaa
adding bash helper scripts
2012-06-15 18:35:34 -07:00
Joe Bowser
451afabfbb
One more time, getting the title default right
2012-06-15 15:37:38 -07:00
Joe Bowser
f60049f713
Default should be false not true
2012-06-15 15:34:26 -07:00
Joe Bowser
ee0cd679d3
Adding more undocumented features for app title bar and full-screen
2012-06-15 15:16:14 -07:00
Joe Bowser
07ed6daeda
Removed merge because I missed the preference set
2012-06-15 15:01:46 -07:00
Joe Bowser
b5800ced61
Incrementing version to 1.9.0rc1
2012-06-15 14:54:46 -07:00
Joe Bowser
6d879f19f8
I think we need to rethink how we automate this test
2012-06-15 13:31:06 -07:00
Joe Bowser
dde79c14f5
Adding the TitleBar pull request
2012-06-15 11:28:42 -07:00
Joe Bowser
b08f245504
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-15 10:17:15 -07:00
Joe Bowser
cbd0b7a94b
This is a poorly written test. What was I thinking?
2012-06-14 15:23:55 -07:00
Joe Bowser
f060d09272
Fixing up tests
2012-06-14 15:23:55 -07:00
Joe Bowser
6edad7e7de
This is a poorly written test. What was I thinking?
2012-06-14 15:11:12 -07:00
Joe Bowser
f0f596c892
Fixing up tests
2012-06-14 13:55:26 -07:00
Joe Bowser
dbe65f1d35
Adding the WebDriver Tests
2012-06-14 13:35:48 -07:00
Joe Bowser
cdaf620f92
CB-582: Automating User WebView/WebViewClient/WebChromeClient tests
2012-06-14 10:33:32 -07:00
macdonst
09b753d09e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-14 10:34:33 -04:00
macdonst
838fa5635f
CB-920: FileTransfer UTF-8 bug
2012-06-14 10:33:44 -04:00
Anis Kadri
0a4d218010
updating test for CB-916
2012-06-13 15:52:26 -07:00
Anis Kadri
24944cff22
deleting old stuff
2012-06-13 15:42:31 -07:00
macdonst
34820f4344
Removed need for getFormatData/Image to load image into memory
2012-06-13 15:57:17 -04:00
Anis Kadri
56047e5fc8
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-12 16:06:42 -07:00
Darryl Pogue
80ee6c1a91
Support showing the app title bar through a preference.
...
This does not change the default behaviour, and will only show the title bar when the showTitle preference is true. This allows apps to show and make use of the ActionBar in Android 3.x and 4.0.
2012-06-12 10:03:50 -07:00
Bryce Curtis
5649fbac20
Fix exception when defaultValue=null.
2012-06-11 14:55:08 -05:00
Bryce Curtis
586d3ecd60
Backbutton broken by adding new onKeyDown method without calling its super.
2012-06-11 14:53:43 -05:00
Joe Bowser
9ebdca66d9
Weird comment conflict
2012-06-11 10:28:24 -07:00
Anis Kadri
41ddcf2218
updated reference in test
2012-06-08 18:35:25 -07:00
Anis Kadri
cbe1216bc2
checking if project exits
2012-06-08 18:04:08 -07:00
Anis Kadri
234ee63859
updating build.xml templates reference
2012-06-08 17:43:29 -07:00
Anis Kadri
2402541974
adding tools verification to batch file
2012-06-08 17:43:10 -07:00
Anis Kadri
8b1fb30f59
fixing create script
2012-06-08 17:42:53 -07:00
Anis Kadri
bf6864bce0
updating cordova.js version
2012-06-08 17:42:06 -07:00
Joe Bowser
34ebdaddc1
Adding logs
2012-06-08 17:17:11 -07:00
Joe Bowser
9f42772b7e
Adding the volume button event changes
2012-06-08 16:25:09 -07:00
macdonst
47211f6cb3
Revert: Adding getContext, startActivity to CordovaInterface
2012-06-08 14:38:58 -04:00
macdonst
95b48705fe
Adding getContext, startActivity to CordovaInterface
2012-06-08 14:03:20 -04:00
macdonst
6c1a2e1230
CB-878: Splash screen in Android fullscreen mode showing not correct
2012-06-08 13:59:32 -04:00
Anis Kadri
55b1e40885
renaming create2
2012-06-08 10:36:10 -07:00
macdonst
d87f404d6e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-08 13:03:44 -04:00
macdonst
48c6ec87cf
CB-878: Splash screen in Android fullscreen mode showing not correct
2012-06-08 13:03:12 -04:00
Anis Kadri
71972dcaab
updating templates reference
2012-06-07 20:11:28 -07:00
Anis Kadri
3fd158ad6e
renaming create2 and templates2
2012-06-07 20:10:14 -07:00
Anis Kadri
447af8da6a
removing old create and templates
2012-06-07 20:08:22 -07:00
Anis Kadri
e8b80e8752
updating Windows !@#% build script
2012-06-07 19:56:08 -07:00
Anis Kadri
30a1164f6a
Merge branch 'master' of https://github.com/imhotep/incubator-cordova-android into build
2012-06-07 18:18:16 -07:00
Joe Bowser
80a5ea137b
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-07 13:20:24 -07:00
Steven Gill
db8a8f3556
updated NOTICE file
2012-06-07 13:12:19 -07:00
Joe Bowser
81195db87d
Massive Merge Commit of DEATH TO SPACES
2012-06-06 14:35:45 -07:00
Steven Gill
23ec117f57
updated NOTICE file
2012-06-06 11:55:11 -07:00
macdonst
d3e24b0c48
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-06 10:46:37 -04:00
Joe Bowser
58c3f9a187
Updating the JS and the version for tagging
2012-06-06 10:45:44 -04:00
Joe Bowser
03aaab6f8b
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-06-05 15:45:33 -07:00
Joe Bowser
a489ae0fb6
Updating the JS and the version for tagging
2012-06-05 14:26:02 -07:00
Joe Bowser
c8af154205
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-06-05 10:05:36 -07:00
macdonst
6d1e0356ac
Changing all tabs to spaces
2012-06-05 09:49:50 -04:00
macdonst
adfdb16dc5
CB-860: MediaFile.getFormatData broken for Image from Capture
2012-06-05 08:45:33 -04:00
Anis Kadri
825b9eafc2
testing create2 script
2012-06-04 17:59:42 -07:00
Joe Bowser
0ad9ff0d87
Merge commit. TABS ARE NOT SPACES
2012-06-04 15:20:00 -07:00
macdonst
24e5c24dd4
Cb-858: Media record defaults to sdcard which may not be mounted
2012-06-04 16:21:13 -04:00
Anis Kadri
8451133d00
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-04 11:38:07 -07:00
Julien Bouquillon
be165c677f
upgrade to latest cordova.android.js
2012-06-02 22:57:35 +02:00
Julien Bouquillon
55ee289ed6
Merge remote-tracking branch 'upstream/master' into volumebtns
2012-06-02 22:52:34 +02:00
macdonst
22e5ccfed4
Merge branch 'master' of https://github.com/will-quast/incubator-cordova-android
2012-06-02 15:57:53 -04:00
macdonst
508cafad1d
Change 'websites' to 'urls'
2012-06-02 11:12:12 -04:00
Fil Maj
ca979a99e8
small tweaks to readme re: testing
2012-05-31 16:01:20 -07:00
Joe Bowser
4ecbaa79cf
Weird merge error. Yo dawg, I heard you like catching exceptions, so we put a catch around your catch. FAIL
2012-05-31 14:24:45 -07:00
Anis Kadri
c12f01261a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-05-31 12:24:03 -07:00
Anis Kadri
d6d2749411
updating script to cleanup on exit/error
2012-05-31 12:23:56 -07:00
Anis Kadri
509588b130
adding a new create script
2012-05-30 19:59:20 -07:00
macdonst
c21e8c9c87
CB-849: Cannot search by birthday
2012-05-30 21:07:56 -04:00
Joe Bowser
e7411e8260
Merge commit of changes on 1.8
2012-05-30 14:45:45 -07:00
Joe Bowser
59f9b6f359
Working on tests
2012-05-30 13:33:07 -07:00
macdonst
5f93a26eea
CB-844: Contact.find does not return urls
2012-05-30 12:52:25 -04:00
macdonst
d79403e352
CB-837: CaptureCB - mediaFile.fullPath does not resolve to file
2012-05-30 09:38:55 -04:00
William Quast
ed94d0dd30
Make PluginResult return valid JSON so the JS side can use JSON.parse
2012-05-29 18:59:31 -05:00
Joe Bowser
43df9f6b9c
Missed this error in the merge commit
2012-05-29 15:49:04 -07:00
Joe Bowser
fd12f57f10
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-29 15:45:04 -07:00
Joe Bowser
ca1a322c76
Changing from currentTimeMillis to nanoTime, we need precision on Android 2.3
2012-05-29 14:58:32 -07:00
Joe Bowser
7d0cc5837d
Auto detect whether we have the jar already. Also, just create the directory whether it exists or not
2012-05-29 14:34:14 -07:00
Joe Bowser
5edb3acad5
Two automated tests completed
2012-05-29 13:42:56 -07:00
Joe Bowser
e35a8de4bb
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-29 10:34:08 -07:00
Steven Gill
b77f1cbff8
updated create script CB 839
2012-05-30 00:11:11 +10:00
Joe Bowser
8b93e87e3e
Merge commit with master, we need to kill all tabs
2012-05-28 13:45:25 -07:00
Julien Bouquillon
cb61e90148
Merge remote-tracking branch 'upstream/master' into volumebtns
2012-05-28 10:42:49 +02:00
Davide Bertola
ccd4365922
Fix calling cordova.plugin.storage.failQuery function from native code
2012-05-26 08:46:57 +02:00
macdonst
d7b79f5042
Upping version to 1.8.0rc1
2012-05-24 21:39:45 -04:00
macdonst
95fa0f4461
CB-808: CameraLauncher leaks bitmaps in Android
2012-05-24 14:49:23 -04:00
Joe Bowser
c37b2d236b
Merge commit and fix.
2012-05-24 09:31:11 -07:00
macdonst
2d77bcf1a4
Merge branch 'CB-792' of https://github.com/don/incubator-cordova-android
2012-05-23 20:39:47 -04:00
Julien Bouquillon
0c9295f8bc
listening to volume events now override default behaviour
2012-05-24 02:01:27 +02:00
Julien Bouquillon
3b27d89c4a
Merge remote-tracking branch 'upstream/master' into volumebtns
2012-05-23 23:43:55 +02:00
Julien Bouquillon
8356ac67e8
prevent volumeup/down default behaviour
2012-05-22 21:42:46 +02:00
macdonst
fae0c3dcfd
Fix problem in Android template example getPicture
2012-05-22 14:48:02 -04:00
Fil Maj
6b24f2d547
Small spacing fixes
2012-05-18 15:23:57 -07:00
Fil Maj
2d5dcf24da
[CB-463] updated js and rewrote accel plugin again to support the start/stop approach. optimized. single callback used for message passing
2012-05-18 15:22:56 -07:00
Fil Maj
15ddef26f4
removed a trailing log
2012-05-18 15:22:56 -07:00
Fil Maj
531efe1e30
[CB-463] added accuracy checking to native accel implementation, this way getCurrentAcceleration returns fairly accurate results
2012-05-18 15:22:56 -07:00
Fil Maj
df89d33fab
removed a trailing log
2012-05-18 15:20:54 -07:00
Fil Maj
cb98bbce1f
[CB-463] added accuracy checking to native accel implementation, this way getCurrentAcceleration returns fairly accurate results
2012-05-18 15:20:54 -07:00
Fil Maj
24adc6d00c
[CB-463] added the JS updates for accel refactor
2012-05-18 15:20:54 -07:00
Fil Maj
71e47aa772
[CB-463] rewrite of accel plugin
2012-05-18 15:20:54 -07:00
Juan G. Hurtado
dffd2deb53
Merge branch 'icecream_workaround' of github.com:viafirma/incubator-cordova-android into icecream_workaround
2012-05-18 08:49:26 +02:00
Juan G. Hurtado
8ff48b371e
Fix imports for changes in 45680a5
...
Commit 45680a5 had errors importing packages. This commit fix them.
2012-05-18 08:48:08 +02:00
Juan G. Hurtado
6de66b87cb
Add Android 4.0 workaround for links with params
...
Android 4.0.x has a known bug [1] while accessing local files with
params:
file://file.html?param=2
This commit adds a workaround for this problem by removing the params
part of the local URI before accessing the file.
[1] http://code.google.com/p/android/issues/detail?id=17535
2012-05-18 08:48:07 +02:00
Don Coleman
5dacb8d2d5
[CB-792] Add HTTP status code to FileTransferError
2012-05-17 14:51:41 -04:00
Fil Maj
0850229c9f
[CB-804] ADded proper cordova icon sizes for the create script
2012-05-17 11:14:23 -07:00
filmaj
1f45503e2f
[CB-659] create script for android on windows now works fully. also pulls down commons-codec jar appropriately
2012-05-17 10:59:38 -07:00
Bryce Curtis
c8a521c182
Need to call pluginManager.onDestroy() to clean up plugins.
2012-05-16 23:27:49 -05:00
Bryce Curtis
5c48ccd92a
Optimize loading "about:blank"
2012-05-16 23:27:19 -05:00
Bryce Curtis
f74d8aaf2b
CB-800: Fix preferences for the CordovaWebView. - Test case needed to implement CordovaInterface.
2012-05-16 22:45:35 -05:00
filmaj
7eb3e5d139
[CB-659] create script should work on android
2012-05-16 19:38:11 -07:00
Joe Bowser
ffa1eb1ee9
Adding tests to the README
2012-05-16 16:13:46 -07:00
Joe Bowser
24dfbfd84f
Merge branch 'CordovaWebView' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-16 15:25:31 -07:00
Joe Bowser
ad6d71fef3
Removing the classes we agreed were not used
2012-05-16 14:59:48 -07:00
Bryce Curtis
c178031f06
Remove unused imports.
2012-05-16 16:48:06 -05:00
Bryce Curtis
20db698475
Add usage comment.
2012-05-16 16:47:37 -05:00
Bryce Curtis
dd624ccd9c
CB-779: Verify that fullscreen and backgroundColor preferences are set properly - This check-in enables background color and adds test for it.
2012-05-16 16:47:24 -05:00
Bryce Curtis
ac504768b2
CB-779: Verify that fullscreen and backgroundColor preferences are set properly - This check-in enables background color and adds test for it.
2012-05-16 16:47:02 -05:00
Bryce Curtis
2d7b7160c3
CB-779: Verify that fullscreen and backgroundColor preferences are set properly - This check-in enables fullscreen and adds test for it.
2012-05-16 15:49:25 -05:00
Bryce Curtis
2fbb9c285d
CB-369: Authentication Code doesn't seem to work. -- Verified basic auth works and provided test case.
2012-05-16 15:13:42 -05:00
Joe Bowser
47d99e5193
Adding the Cordova Upgrade Guide
2012-05-16 11:46:50 -07:00
Joe Bowser
0437d6cc1a
Added JUnit to the README, removed WebDriver for now. Need to figure out distribution.
2012-05-16 11:37:38 -07:00
Joe Bowser
c6851cf7c5
First Draft of how to use CordovaWebView
2012-05-16 10:58:33 -07:00
Juan G. Hurtado
45680a562e
Add Android 4.0 workaround for links with params
...
Android 4.0.x has a known bug [1] while accessing local files with
params:
file://file.html?param=2
This commit adds a workaround for this problem by removing the params
part of the local URI before accessing the file.
[1] http://code.google.com/p/android/issues/detail?id=17535
2012-05-16 08:42:50 +02:00
Joe Bowser
3b9d46fadc
Forgot to add the proper constructor. The Clients need to know about their webView.
2012-05-15 15:46:10 -07:00
Joe Bowser
f840f3aceb
Setting up a default CordovaWebViewClient and CordovaChromeClient for when we are blowing up via XML layouts
2012-05-15 15:30:15 -07:00
Joe Bowser
afa1ecf3c5
Removing tests that don't work and modifying CordovaWebView so it works as a stand-alone component again. Mobile-spec currently doesn't work
2012-05-15 13:24:43 -07:00
Joe Bowser
295b9f4f5b
Forgot to recheck Plugin. Adding it back
2012-05-15 09:36:53 -07:00
Joe Bowser
79048a5a84
Fixing FileUtils change. We are using contexts now, not CordovaInterfaces. CordovaInterface is a SHOULD, not a MUST
2012-05-15 08:55:42 -07:00
Bryce Curtis
d683bd3744
Enable onMessage() to return a value.
2012-05-15 10:00:02 -05:00
Bryce Curtis
9f5f4973ae
Add comments.
2012-05-15 09:55:55 -05:00
Bryce Curtis
441785b51d
Update for getActivity().
2012-05-14 23:25:10 -05:00
Bryce Curtis
0d32115c3f
Merging nightmare.
2012-05-14 23:24:08 -05:00
Bryce Curtis
e660768e4b
Removed.
2012-05-14 23:19:15 -05:00
Bryce Curtis
01abb32025
Update
2012-05-14 23:18:26 -05:00
Bryce Curtis
d44d9ddca6
Merge branch 'CordovaWebView' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
...
Conflicts:
framework/src/org/apache/cordova/FileUtils.java
framework/src/org/apache/cordova/GeoListener.java
framework/src/org/apache/cordova/GpsListener.java
framework/src/org/apache/cordova/NetworkListener.java
2012-05-14 23:16:32 -05:00
Bryce Curtis
13f92b2b76
Add exit message.
2012-05-14 22:51:36 -05:00
Bryce Curtis
e6aa64760e
Updates.
2012-05-14 22:18:01 -05:00
Bryce Curtis
3829df665f
Formating and removal of commented code.
2012-05-14 22:06:33 -05:00
Bryce Curtis
c8fafa6bbd
Updates.
2012-05-14 21:49:30 -05:00
Joe Bowser
aede2235d0
Updating Activities
2012-05-14 16:07:00 -07:00
Joe Bowser
c56c73f250
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-11 16:08:40 -07:00
Joe Bowser
fc50a0d954
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-05-11 16:08:06 -07:00
Joe Bowser
c6349668dd
Tweaked create so it fetches the commons-codec using curl
2012-05-11 16:07:43 -07:00
Joe Bowser
dd0b6b1e30
Adding empty tests. May have to re-think the way we test this method
2012-05-11 15:14:35 -07:00
macdonst
eb66eb02cb
Switch to using stripFileProtocol in FileUtils.notifyDelete
2012-05-11 16:43:00 -04:00
Joe Bowser
5b324c85b0
Broke the merge, need to add GPSListener.java
2012-05-11 10:38:21 -07:00
Joe Bowser
fc9cff7d26
Merging master into CordovaWebView
2012-05-11 10:36:17 -07:00
Fil Maj
6a628f7f2d
[CB-683] updating JS for fix for 683
2012-05-10 16:43:08 -07:00
Joe Bowser
f3e70c79eb
A quick stab at CB-510
2012-05-10 16:42:37 -07:00
Fil Maj
08a32272d3
[CB-683] Pause and resume events should route through fireDocumentEvent so we get the event object passed into the handler
2012-05-10 16:40:41 -07:00
Fil Maj
a705b72740
CB-481 refactored prompt() call in JS to exec, moved showing of webview out of chrome client and into app plugin (so we can invoke via exec)
2012-05-10 15:50:02 -07:00
Joe Bowser
de6652dd9d
Moving the Callback Server Start/Stop to the onPageStarted fixed timing errors
2012-05-10 15:07:14 -07:00
Joe Bowser
b2f49b15ba
Don't commit Eclipse preferences
2012-05-10 12:25:47 -07:00
Joe Bowser
c0dcbecbea
Updating the project, removing generated artifacts
2012-05-10 12:18:26 -07:00
Julien Bouquillon
b323f329cc
add volumeupbutton/volumedownbutton events
2012-05-10 02:06:31 +02:00
Michael Brooks
2625a57fdd
Fix README.md formatting to install commons-codec-1.6.jar
2012-05-09 15:32:53 -07:00
Joe Bowser
2142d00bb9
Added loadConfiguration to the standalone WebView
2012-05-08 15:43:42 -07:00
Joe Bowser
4ce585be02
Updating the history configuration. We can switch between histories
2012-05-08 13:58:24 -07:00
macdonst
c2631ee0f7
Properly querying the Andoid content DB when deleteing an image file
2012-05-08 15:23:00 -04:00
Joe Bowser
8ab1733374
Removing the hacked-up jars that I used to get this to work, since I can't distribute them
2012-05-07 16:30:24 -07:00
Fil Maj
bafa438ce3
updating JS to latest for geolocation updates
2012-05-07 16:22:01 -07:00
Fil Maj
18cc90b3d8
adding uppercase java file!
2012-05-07 16:09:20 -07:00
Fil Maj
0fd1e3c57b
axing lowercase java file
2012-05-07 16:09:20 -07:00
Fil Maj
1ee484f70d
Fixes for new geo stuff
2012-05-07 16:09:20 -07:00
Fil Maj
724ea49f0b
restructured geolocation plugin
2012-05-07 16:09:20 -07:00
Fil Maj
6fc2a3b84e
adding node_modules to gitignore
2012-05-07 16:09:14 -07:00
Fil Maj
b84d64912b
comeat me lawyers
2012-05-07 16:08:28 -07:00
Joe Bowser
e28f09e95b
Merge Commit from latest master
2012-05-07 15:57:37 -07:00
Joe Bowser
21f6d9c527
Modifying generated classpath
2012-05-07 15:52:49 -07:00
Joe Bowser
8e0c3c1fa1
Updating README telling people to copy commons-codec
2012-05-07 15:52:34 -07:00
Joe Bowser
9e10160366
Removing the commons-codec
2012-05-07 15:48:59 -07:00
Joe Bowser
d38dd4c131
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-05-07 15:25:23 -07:00
Joe Bowser
84aaf02b0f
Removing Default Android Graphics and replacing them with our own
2012-05-07 15:24:57 -07:00
Joe Bowser
269b90ad6f
updating the test plugins
2012-05-07 14:49:21 -07:00
Joe Bowser
c11c4bea94
Adding header to test cordova.xml
2012-05-07 14:46:34 -07:00
Joe Bowser
7de660808c
Accidentally committed a vim swp file
2012-05-07 14:36:13 -07:00
Joe Bowser
1fcaf2435f
Adding more Apache licence headers
2012-05-07 14:27:33 -07:00
Fil Maj
87fbb5c92f
documented running npm install
2012-05-07 12:31:24 -07:00
Fil Maj
3636a18bba
added package.json for npm install goodness
2012-05-07 12:29:44 -07:00
Fil Maj
ea8d6b17ec
dont check in node_modules peepz!
2012-05-07 12:29:08 -07:00
Joe Bowser
27e511b785
Adding Apache headers to the tests on the branch
2012-05-07 11:41:34 -07:00
Joe Bowser
9dfa503bad
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-07 11:15:38 -07:00
Joe Bowser
a087116915
Working towards Apache compliance
2012-05-07 10:56:37 -07:00
Joe Bowser
216f6a9b32
Adding more Apache Headers. Not sure if this should have headers or not
2012-05-04 16:47:37 -07:00
Joe Bowser
e32503fad7
Forgot to add lifecycle/index2.html's header
2012-05-04 16:40:38 -07:00
Joe Bowser
c33f768570
Adding Apache Header to Test Directory
2012-05-04 15:22:15 -07:00
Joe Bowser
20c7b512f3
We should not be having a compiled version of cordova.jar in the test directory
2012-05-04 13:55:43 -07:00
Joe Bowser
5abe8dd506
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-05-04 11:49:48 -07:00
Joe Bowser
e4119f3fd2
Adding Apache headers to the new classes
2012-05-04 11:19:40 -07:00
Joe Bowser
480e5ca4d1
Working on CB-585
2012-05-04 11:18:19 -07:00
Joe Bowser
e2d91c2556
Updating the JS and re-tagging 1.7.0
2012-05-01 14:25:42 -07:00
Joe Bowser
634a9c0f4c
Updating the version to 1.7.0
2012-04-30 13:42:38 -07:00
Joe Bowser
f4cf2cecb5
Moving preferences into CordovaWebView, need to discuss prefs when using CordovaWebView
2012-04-27 14:44:19 -07:00
Joe Bowser
5ab5cf03b5
Adding screenshot and activity to the test, although Actvity isn't a standard plugin
2012-04-25 11:28:09 -07:00
Joe Bowser
13ba1e4900
Tweaking the DroidGap to use the new SplashScreen
2012-04-25 10:41:47 -07:00
macdonst
c846111099
Adding SplashScreen plugin to plugins.xml
2012-04-25 13:17:48 -04:00
macdonst
960e0f3412
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-04-25 11:53:39 -04:00
Joe Bowser
39f261c6e2
Incrementing project to 1.7.0rc1
2012-04-25 11:49:55 -04:00
Joe Bowser
17c919edd9
Tweaks to move history over into the WebView
2012-04-24 15:50:06 -07:00
macdonst
d7c8bc799d
Refactor Android SplashScreen
2012-04-24 15:14:37 -04:00
Joe Bowser
99b3693f40
Starting to move the history into the CordovaWebView, and getting the WebDriver working again
2012-04-23 16:32:59 -07:00
Joe Bowser
483bb53d9c
Minor tweak to the test so it loads the correct HTML
2012-04-23 15:22:41 -07:00
Joe Bowser
80ec23887e
Fixed the bug caused when running on Eclipse
2012-04-23 14:43:54 -07:00
Joe Bowser
ea81b97bfc
Changing viewClient to default visibility
2012-04-23 14:33:06 -07:00
Joe Bowser
be39bf8d91
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-23 14:30:22 -07:00
Joe Bowser
f4da7e164d
Incrementing project to 1.7.0rc1
2012-04-23 11:37:33 -07:00
Joe Bowser
ca66c4bf59
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-23 10:33:37 -07:00
Joe Bowser
4192489836
Adding the CordovaException class
2012-04-20 15:05:48 -07:00
macdonst
05192a91da
Removing un-needed logs
2012-04-19 21:03:55 -04:00
Fil Maj
3835144b93
[CB-473] run ant clean before ant debug install
2012-04-19 17:25:19 -07:00
Joe Bowser
bdf452b02a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-04-19 16:48:32 -07:00
Joe Bowser
bcc2957f20
Fix for CB-549
2012-04-19 16:45:15 -07:00
Fil Maj
81059b398f
Proper fix for CB-164. Online/offline events now propagated to webview properly
2012-04-19 16:35:55 -07:00
Joe Bowser
2e4667da88
Removing the cordova jar, it shouldn't be in the repo
2012-04-19 16:25:54 -07:00
Joe Bowser
9718aa5d4a
Removing Jail functions for now
2012-04-19 16:12:37 -07:00
Joe Bowser
d5dd43289b
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-19 15:37:54 -07:00
Fil Maj
31d5a94ea9
[CB-164] Changed network plugin to sync from async and removed setKeepCallback(true) on plugin result in there. Fixes location.reload() not firing deviceready due to network plugin being unresponsive
2012-04-19 12:33:45 -07:00
Joe Bowser
1e5457a47d
Reverting the back button change that I made, for some reason certain methods aren't inherited when you extend DroidGap
2012-04-19 12:22:33 -07:00
macdonst
7b75e2f1b0
CB-539: FileTransfer.download fails when target starts with 'file://'
2012-04-18 13:56:29 -04:00
Joe Bowser
180696baec
Fixed back button behaviour. WIN
2012-04-17 17:50:07 -07:00
Joe Bowser
76820ebaff
CB-480 work, back button and history issues are preventing this from being tested properly
2012-04-17 17:13:33 -07:00
Joe Bowser
1bd7a662df
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-17 12:33:57 -07:00
Joe Bowser
c341cf0d47
Adding fix for CB-482
2012-04-17 12:20:23 -07:00
Joe Bowser
327589a1d7
Added another runnable, this code is hideously awful
2012-04-13 16:27:09 -07:00
Joe Bowser
531b8f641f
Adding old code back, we can't access webViewClient methods without them being on the UI thread. :(
2012-04-13 15:43:17 -07:00
macdonst
f2c38ea0a7
Automatically update index.html in templates directory on version change
2012-04-13 16:36:46 -04:00
Joe Bowser
0772a315c4
CB-489 - Adding .js to the example, thought it was removed for a reason
2012-04-13 13:08:13 -07:00
Joe Bowser
8ac274cdca
Removing runnable code for timeout because it's not thread-safe
2012-04-13 13:00:39 -07:00
macdonst
08d7a9c87a
Remove duplicate files from repository
...
We should only have these files in one place in the repo. Changes have been made to the scripts to pick up the xml files from their proper location.
2012-04-13 15:35:49 -04:00
Joe Bowser
fea79bc971
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-13 11:14:20 -07:00
Joe Bowser
eb48055acd
Getting setup to tag 1.6.1
2012-04-12 16:37:27 -07:00
Joe Bowser
e4a52de0a5
Copying new XML into the templates for 1.6.1. Turns out tags are broken
2012-04-12 14:33:29 -07:00
Joe Bowser
f2526bbc78
Updated tweaks to get up and running
2012-04-12 14:18:06 -07:00
Joe Bowser
1794f2e047
Massive refactor of CordovaInterface. Deprecation and Exception throwing to notify the user that we're changing things
2012-04-12 11:27:08 -07:00
Joe Bowser
b99e9abb5f
Working. Pushing the callback server change again.
2012-04-11 13:23:45 -07:00
Joe Bowser
e77f9bb8fc
Rolling back half-baked change that broke the code in the branch, we need to rethink the Callback Server
2012-04-11 11:44:53 -07:00
Joe Bowser
628f88cf79
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
2012-04-11 09:12:19 -07:00
macdonst
ac06892dec
CB-472: FileWriter.seek(0) does not actually seek to the beginning of the file
2012-04-11 10:44:09 -04:00
Joe Bowser
87238f26f6
Managed to get this building minus Jail Activity, still a long way to go
2012-04-10 17:34:34 -07:00
Joe Bowser
95013e87dd
Fixing the manifest errors
2012-04-10 16:01:53 -07:00
Joe Bowser
d604e8b9b4
Updating the tests a bit, still not running
2012-04-10 15:53:40 -07:00
Joe Bowser
9a2eb04054
Tweaking DroidGap so it compiles into a JAR, starting testing
2012-04-10 14:39:01 -07:00
Joe Bowser
f34da8a96f
Fixing eclipse classpath
2012-04-10 14:22:25 -07:00
Joe Bowser
5e1997c8d8
Updating with tagged JS
2012-04-10 13:26:35 -07:00
Bryce Curtis
36e6b572b7
Update to version 1.6.0.
2012-04-10 09:01:37 -05:00
Joe Bowser
3bda8afdc1
Updating the sample index.html
2012-04-09 17:11:51 -07:00
Joe Bowser
cdf148bb58
Starting Release Process
2012-04-09 17:11:13 -07:00
Joe Bowser
b532cf8545
Fixing the template, since this doesn't have to be unit tested. :)
2012-04-09 13:43:36 -07:00
macdonst
ecebcbabf8
CB-446: Enhance setting data source for local files in AudioPlayer
2012-04-09 10:13:43 -04:00
macdonst
aa00e07b3c
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-04-05 19:52:36 -04:00
macdonst
cb473dfed4
CB-453: FileWriter.append - Chinese characters are not appended to the file correctly
2012-04-05 19:51:45 -04:00
Bryce Curtis
8b05ce41dd
Update project template cordova.js reference and title.
2012-04-05 15:39:33 -05:00
macdonst
5d43835db8
CB-446: Enhance setting data source for local files in AudioPlayer
2012-04-05 13:43:00 -04:00
macdonst
838286df96
Return MediaError object and not error code from native side of Media API
2012-04-05 13:31:09 -04:00
Joe Bowser
527f17d19e
Tweaking the tests so that they merge
2012-04-04 13:38:35 -07:00
macdonst
04aa6d3c38
CB-438: File metadata.modificationTime returns an invalid date
2012-04-04 13:03:39 -04:00
macdonst
e213772f98
Updating cordova.android.js for CB-421 and CB-426
2012-04-03 13:09:31 -04:00
macdonst
0577b4bf5d
CB-426: camera.getPicture ignores mediaType in 1.5
2012-04-03 13:02:25 -04:00
Bryce Curtis
a37d0699db
[CB-423] Problem displaying patch-9 splash screen.
2012-04-02 11:34:57 -05:00
Joe Bowser
2818e05e71
Move the callback server into the View, preparing to start CordovaWebView testing
2012-03-30 13:28:19 -07:00
macdonst
5fa77e97bd
CB-163: contactFindOptions.filter does not work as expected on Android
2012-03-30 16:28:04 -04:00
macdonst
8d479c8269
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-03-30 15:31:54 -04:00
macdonst
700ae50e9b
CB-321: Media API: 'mediaSuccess' callback param to new Media() is called soon after new obj created
2012-03-30 15:29:26 -04:00
Bryce Curtis
900be3afe0
Tests to verify Android native features.
2012-03-30 11:37:29 -05:00
macdonst
d2b329636f
Fixing license header in com.phonegap.api.PluginManager
2012-03-29 15:08:44 -04:00
Joe Bowser
49b50ce66c
Minor tweaks to DroidGap, allows for the ChromeClient and ViewClient to be overridden
2012-03-29 12:03:20 -07:00
Joe Bowser
b793fbfc28
Partially moved the callback server into the WebView. The WebView MUST own the CordovaWebViewClient and the CordovaWebChromeClient
2012-03-28 16:49:59 -07:00
Fil Maj
993fb296d6
updating network status plugin label and updating cordova-js to latest
2012-03-28 13:47:45 -07:00
Joe Bowser
59ff94fefb
Moving init code into the WebView
2012-03-27 11:28:55 -07:00
macdonst
dfc86b1af1
Fix for CB-389: resolveLocalFileSystemURI does not work on a resized image captured from Camera.getPicture()
2012-03-26 21:35:34 -04:00
Joe Bowser
f3c29840a7
Moving whitelisting into the WebView, still need to read the config in the WebView if required
2012-03-26 15:39:58 -07:00
Joe Bowser
6dabe4c010
Work on CB-369, Moving Authentication OUT of DroidGap
2012-03-26 10:22:37 -07:00
macdonst
1e2c38598f
CB-383: Fixes issue with misspelled destinationType for Camera.getPicture()
2012-03-24 14:09:57 -04:00
Joe Bowser
8ecfcb12c7
Cleaning out the asssets/www directory. This should house mobile-spec
2012-03-23 14:57:58 -07:00
Joe Bowser
ae8bc77ee7
Adding the tests from the GitHub Prototype
2012-03-23 14:56:55 -07:00
Joe Bowser
e25490751c
Creating the CordovaWebView, modifying DroidGap to use that
2012-03-23 14:51:25 -07:00
Joe Bowser
9d0e8fa436
Tagged 1.6rc1
2012-03-23 14:30:18 -07:00
Bryce Curtis
9d26598334
[CB-367] Back button event should fire on key up not key down
...
Also changed menu key and search key to be consistent.
2012-03-23 15:17:09 -05:00
Joe Bowser
a688319ea7
First stab at CB-21, I really need more info before I can close this
2012-03-20 15:22:00 -07:00
Joe Bowser
bbf10e3baa
Fixing a bug with File Upload on Android where Chunked mode isn't used by default
2012-03-20 11:25:17 -07:00
Bryce Curtis
7e70d76232
[CB-352] Support initializing DroidGap with existing WebView, WebViewClient and webViewChrome.
...
[CB-353] Create PluginEntry object to use by PluginManager.
2012-03-19 16:20:57 -05:00
Joe Bowser
04b3e4d847
Fixing CB-343: We need to respect the whitelist
2012-03-16 10:55:06 -07:00
Joe Bowser
dc93556ef0
Checking for the callback server before we call sendJavascript for the Kindle Fire, CB-247
2012-03-15 14:29:25 -07:00
Fil Maj
692a59a692
spacing fixes, null check in getPhoneType in contacts, returning error integers instead of objects in contacts
2012-03-15 12:27:37 -07:00
Joe Bowser
df691518e3
Added temporary Cordova splash for now
2012-03-15 10:54:43 -07:00
Joe Bowser
8f2cdcc049
Changing to the modern icon
2012-03-15 10:48:00 -07:00
Joe Bowser
d27064794c
Tweaked File Transfer to fix CB-74
2012-03-13 11:46:25 -07:00
Joe Bowser
8a7af93765
Fixing CB-210 with patch and adding fix for CB-210
2012-03-12 13:30:16 -07:00
Fil Maj
f3c96ce1a0
removed old javascript files and removed unused target + commented out lines in build.xml
2012-03-09 12:36:08 -08:00
Fil Maj
715c0a5bea
updates to JS: removing require+define from global scope, tweaking geolocation code, online/offline events fire on document now
2012-03-09 12:32:22 -08:00
Fil Maj
4b05ead3ac
cordova.require("cordova") is pretty funny. wish i didnt write it
2012-03-09 11:27:56 -08:00
Fil Maj
b4292868eb
switched from "require" syntax to "cordova.require"
2012-03-08 17:58:45 -08:00
Joe Bowser
c5025ee2bb
We show the default 404 on non-resolved domains
2012-03-06 14:09:11 -08:00
macdonst
8923e52a5e
Adding support for legacy plugins
2012-03-05 15:11:24 -05:00
macdonst
aa4f2cc4d9
Tagging 1.5.0
2012-03-01 21:29:18 -05:00
macdonst
4a23f86411
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-03-01 15:57:31 -05:00
macdonst
a69bd65152
Updating cordova.android.js to override FileReader
2012-03-01 15:57:21 -05:00
Fil Maj
7392b63b99
updating cordova.js to include camera constants fix. added clean dependency to build-javascript target in ant file
2012-03-01 11:56:37 -08:00
macdonst
73aa5cc7c3
Updating cordova.android.js to latest version from Apache git repo
2012-03-01 10:45:27 -05:00
Joe Bowser
7bf35e9c83
Merged cordova.android.js. Please move fixes to the cordova-js project
2012-02-29 17:24:04 -08:00
Joe Bowser
adb871f9e1
Updating the JS, even though it shouldn't be here. CB-290
2012-02-29 17:03:37 -08:00
macdonst
21b7346277
Revert change in location of FileSystem
2012-02-29 13:23:32 -05:00
Joe Bowser
79935d31ef
Putting back the CordovaInterface work after talking with Simon
2012-02-29 09:34:46 -08:00
Bryce Curtis
d2fc08959a
Fix WebSQL for Android 4.0.2.
2012-02-28 23:26:21 -06:00
Bryce Curtis
3ebc1d71df
Updating cordova.android.js with File API fixes.
2012-02-28 22:32:30 -06:00
Bryce Curtis
f6503f8476
File APIs should return error code instead of object.
2012-02-28 22:30:27 -06:00
Fil Maj
d593448182
updating cordova.android.js. This resolves CB-283: unregistration of backbutton event handlers do not fire appropriate native method
2012-02-28 17:21:21 -08:00
Joe Bowser
403b87b68b
Reverting interface change, not enough time for testing, need to remove it manually
2012-02-28 16:30:25 -08:00
Joe Bowser
bf69362709
Fix to CordovaInterface methods, DroidGap has the managedQuery since it inherits from Activity. (CB-282)
2012-02-28 11:59:51 -08:00
macdonst
c00fb987f6
Switching to require syntax for AudioPlayer
2012-02-28 13:00:33 -05:00
macdonst
7c6450de50
Fixing the call to Media.onStatus()
2012-02-28 11:02:01 -05:00
macdonst
10cbcd7f5a
Adding startActivity method to CordovaInterface as many plugins rely on this method
2012-02-27 13:07:56 -05:00
macdonst
e918ffd751
Tagging 1.5.0rc1
2012-02-25 00:28:06 -05:00
macdonst
3ed41597d2
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into license
2012-02-24 17:51:20 -05:00
macdonst
5722d976ce
Fixing app crash when clicking Menu or Back buttons while splashscreen is being shown.
2012-02-23 12:36:38 -05:00
macdonst
8555c42196
CB-3: Apache source headers in callback-android
2012-02-23 11:36:08 -05:00
macdonst
e85394dd99
Refactoring the checks for file:// into a convenience method
2012-02-22 15:56:03 -05:00
macdonst
cc5cfad58d
Removing extraneous logging from DroidGap.java left over from rebase
2012-02-22 10:44:16 -05:00
macdonst
363b1429e3
Fix issue with document.location.href not calling loadUrlIntoView
...
Now we peek at the history and add the url the stack if loadUrlIntoView is not being called.
2012-02-22 10:19:47 -05:00
macdonst
900ff9ed2c
Redirect Issue
2012-02-22 10:18:57 -05:00
Joe Bowser
c9d4276207
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-02-20 12:46:20 -08:00
Bryce Curtis
fef0e429db
Update build to use new common cordova.android.js instead of building js from multiple Android js files.
2012-02-20 11:04:37 -08:00
Bryce Curtis
26044ad662
Add cordova.android.js from common-js build.
2012-02-20 11:04:37 -08:00
Fil Maj
42430d5d11
more file:// URI truncation :D
2012-02-20 11:04:37 -08:00
Fil Maj
770a257ed3
trim file:// URI from uri->path conversion method
2012-02-20 11:04:37 -08:00
Fil Maj
9fe1f21c9f
Use strings not objects
2012-02-20 11:04:37 -08:00
Fil Maj
49d8d22d7f
remove trailing slash
2012-02-20 11:04:37 -08:00
Fil Maj
d274891c2c
remove file:// protocol from various fileutils methods
2012-02-20 11:04:36 -08:00
Fil Maj
c099c65365
remove file:// protocol from various fileutils remove methods
2012-02-20 11:04:36 -08:00
Fil Maj
79ba28d6c4
truncating file:// protocol where applicable in metadata func
2012-02-20 11:04:36 -08:00
Fil Maj
b4d1ca6181
Need to add/trim file:// where applicable
2012-02-20 11:04:36 -08:00
Fil Maj
657faaff7f
Prefix URIs for file API with file:/// and persistent storage should never point to SD card
2012-02-20 11:04:36 -08:00
Fil Maj
a43e80ae1d
Return string for root location in requestFileSystem
2012-02-20 11:04:36 -08:00
Fil Maj
5253b5fb31
removing unnecessary try/catch
2012-02-20 11:04:35 -08:00
Fil Maj
8b12bf79e4
Unifying File API error code/response style
2012-02-20 11:04:35 -08:00
Fil Maj
45d75524c9
Changed JavaScript invoked from PluginResult native code to use new modular JS approach
2012-02-20 11:04:35 -08:00
Fil Maj
8a137395ae
changing JS invoked from native to work with modular js
2012-02-20 11:04:35 -08:00
Fil Maj
390fe537f8
woops java type checks! love it!
2012-02-20 11:04:35 -08:00
Fil Maj
40cd71484c
Adding unsupported action plugin result return if invalid action string is specified to accel and compass listener plugins
2012-02-20 11:04:35 -08:00
Bryce Curtis
9188773152
Arguments are passed as JSON array, not JSON object.
2012-02-19 00:15:23 -06:00
Bryce Curtis
cc8edea065
Call js code using new common js way.
2012-02-18 13:19:50 -06:00
Bryce Curtis
14b368e731
Update build to use new common cordova.android.js instead of building js from multiple Android js files.
2012-02-17 17:30:25 -06:00
Bryce Curtis
4d03577220
Add cordova.android.js from common-js build.
2012-02-17 17:28:35 -06:00
Joe Bowser
040619cd61
Moved the CordovaInterface over to master, doing this before working on CordovaJS
2012-02-17 13:11:15 -08:00
Fil Maj
d6fef8d6e3
more file:// URI truncation :D
2012-02-17 11:40:22 -08:00
Fil Maj
7c1eb7da9b
trim file:// URI from uri->path conversion method
2012-02-17 10:55:04 -08:00
Fil Maj
d87ee719a3
Use strings not objects
2012-02-16 18:17:25 -08:00
Fil Maj
a52ba37cf7
remove trailing slash
2012-02-16 17:48:48 -08:00
Fil Maj
cd667d6af5
remove file:// protocol from various fileutils methods
2012-02-16 17:46:16 -08:00
Fil Maj
7e4158ce94
remove file:// protocol from various fileutils remove methods
2012-02-16 17:31:07 -08:00
Fil Maj
0ba803ff46
truncating file:// protocol where applicable in metadata func
2012-02-16 17:21:03 -08:00
Fil Maj
6c48c6a3a1
Need to add/trim file:// where applicable
2012-02-16 15:33:19 -08:00
Fil Maj
7ee135e516
Prefix URIs for file API with file:/// and persistent storage should never point to SD card
2012-02-16 15:18:13 -08:00
Fil Maj
fd69095d3d
Return string for root location in requestFileSystem
2012-02-15 17:30:32 -08:00
Fil Maj
357c0ee1ca
removing unnecessary try/catch
2012-02-15 16:57:40 -08:00
Fil Maj
40637c1486
Unifying File API error code/response style
2012-02-15 16:47:32 -08:00
Fil Maj
a84d2eab02
Changed JavaScript invoked from PluginResult native code to use new modular JS approach
2012-02-15 10:39:20 -08:00
Fil Maj
52213541a3
changing JS invoked from native to work with modular js
2012-02-15 10:37:24 -08:00
Fil Maj
c7d4d83476
woops java type checks! love it!
2012-02-15 10:35:20 -08:00
Fil Maj
003e3d4d85
Adding unsupported action plugin result return if invalid action string is specified to accel and compass listener plugins
2012-02-15 10:35:19 -08:00
Joe Bowser
95b9cd0229
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-02-09 15:05:30 -08:00
Joe Bowser
044a61d881
Adding custom headers to upload
2012-02-09 15:02:13 -08:00
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
Joe Bowser
ee4c91539a
Change related to FileTransfer, need to get a test going for this somehow
2012-02-08 16:49:17 -08:00
Joe Bowser
77547f8826
Changing to CordovaInterface in preparation of CordovaWebView
2012-02-06 14:13:34 -08:00
Bryce Curtis
52a3a919f9
Missing first line of license in header.
2012-02-06 10:40:48 -06:00
macdonst
1293d64589
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-02-06 10:16:16 -05:00
Anis Kadri
54968b755b
CB-75 contact.remove does not remove the contact fully
2012-02-06 10:13:57 -05:00
macdonst
d8d7c29afe
Adding com.phonegap.api stubs for legacy user created plugins
2012-02-06 10:04:02 -05:00
Anis Kadri
1c7626aba2
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-02-03 19:36:27 -08:00
Anis Kadri
e0fea2c352
CB-75 contact.remove does not remove the contact fully
2012-02-03 19:32:31 -08:00
macdonst
210cc2bd5e
Fixing MediaFileData problem for MP4 video types
...
Problem:
Using Capture Video and mediaFile.getFormatData() on Android:
Droid / 2.2.3: successfully get height, width, duration
Samsung Galaxy Tab 10.1 / 3.1: recording appears to succeed,
however height / width / duration all come back as 0.
Fix:
The Samsung Galaxy Tab 10.1 returns a MP4 video and not 3GPP as was expected in the Capture class.
2012-02-03 12:24:45 -05:00
macdonst
664a061d10
Rename to Cordova
2012-02-03 10:38:40 -05:00
Joe Bowser
fa4d6d369a
Switching headers. Got OK months ago from Simon and Bryce on re-write. No Android Demo code in current project
2012-02-01 13:09:58 -08: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
4f61531422
Fixing a timing issue with the web view history not being cleared properly
2012-01-27 12:02:31 -05:00
macdonst
6e82ec4152
Allow internal SD Card to be used as storage
2012-01-25 16:34:46 -05:00
Joe Bowser
9206dca741
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-25 11:41:24 -08:00
Joe Bowser
503640f6b5
Removing the classic render feature, since it's not working properly
2012-01-25 11:40:46 -08:00
Bryce Curtis
e1e04f859c
Remove unused files/classes until they are needed.
2012-01-24 22:42:41 -06:00
Bryce Curtis
e30896155c
Added license header to new files.
2012-01-24 22:35:16 -06:00
Bryce Curtis
282f59cd99
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-24 15:03:40 -06:00
macdonst
89e260a5a1
CB-199: FileTransfer.download fails on Android 4.0
...
The download method in FileTransfer was setting the HttpURLConnection.setDoOutput to true. On Android 4.0 this would force the connection to be a POST when what we actually want is a GET.
I removed the offending line and tested the fix in 2.1, 2.2, 2.3 and 4.0.
2012-01-24 11:24:06 -05:00
Bryce Curtis
20891aee1a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-23 21:10:40 -06:00
macdonst
6e5ef1e819
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-23 20:15:51 -05:00
Anis Kadri
e8544d30d1
Merge branch 'master' of github.com:imhotep/incubator-cordova-android
2012-01-23 16:21:11 -08:00
Bryce Curtis
f9af33b750
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-23 18:04:33 -06:00
Joe Bowser
d28a60ed97
Moving the WebViewClient out, allowing for PhoneGap to not break on empty console.log
2012-01-23 15:04:03 -08:00
Joe Bowser
0890be5815
Moved Chrome Client out of DroidGap.java
2012-01-23 14:42:55 -08:00
Joe Bowser
308a5f1509
Changing to use JS directly. There are issues with this approach, and it should use the KeyboardHandler
2012-01-23 14:21:20 -08:00
Joe Bowser
7904bcc054
Editing a comment about LinearLayoutSoftKeyboardDetect
2012-01-23 14:01:07 -08:00
Joe Bowser
c7e3b46e2e
Moving LinearLayoutSoftKeyboardDetect out into its own class and making it more plugin-like
2012-01-23 13:49:55 -08:00
Joe Bowser
490a13d3c4
Removing GapView, since it doesn't actually do anything
2012-01-23 11:57:15 -08:00
Bryce Curtis
1dfe7e59a7
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-20 15:01:46 -06:00
Joe Bowser
a2cdcd47be
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-20 12:43:06 -08:00
Joe Bowser
a42451969f
Merge branch 'master' of github.com:cordova/cordova-android
2012-01-20 12:41:29 -08:00
Joe Bowser
7955c6dd02
Merge branch 'master' of github.com:callback/callback-android
2012-01-20 12:39:21 -08:00
macdonst
56096ad00e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-20 13:38:06 -05:00
Anis Kadri
faacdd6b02
Merge pull request #1 from pehrlich/master
...
documentation updates
2012-01-17 16:20:31 -08:00
Peter Ehrlich
bdd7449af3
documentation additions
2012-01-17 16:31:08 -05:00
Anis Kadri
64c462c8ad
fixing whitelist handling
2012-01-13 17:29:46 -08:00
Joe Bowser
cb0b054079
Merge pull request #3 from alunny/preferences
...
add support for <preference name="fullscreen"> to res/xml/phonegap.xml
2012-01-10 13:09:04 -08:00
Joe Bowser
41b49df944
Merge pull request #2 from alunny/with-tests
...
adding JUnit dependency
2012-01-10 13:01:11 -08:00
alunny
ffa76246e3
making preference reading code more robust
2012-01-09 17:31:58 -08:00
alunny
3af4d6b139
using preference=fullscreen for fullscreen view
...
involves loading configuration before the layout is set up
2012-01-09 17:31:50 -08:00
alunny
752b1b0e30
reading preferences from phonegap.xml
...
adds PreferenceNode and PreferenceSet classes as wrappers for the W3C
config.xml <preference> nodes
populates a PreferenceSet @preferences member
2012-01-09 17:29:50 -08:00
alunny
d91beb5ad9
adding JUnit dependency
...
* framework/libs/junit-4.10.jar
* `ant test` task for running junit tests on jar
* updates to LICENSE and NOTICE files
2012-01-09 17:14:26 -08:00
Bryce Curtis
8db5e06c62
Fix CB-135 Multithreaded access on CallbackServer javascript object.
2012-01-06 22:23:49 -06:00
Joe Bowser
bc309c9f00
Merge conflicts with something on the official repo, moving old pull request in
2012-01-06 15:52:09 -08:00
Joe Bowser
9078fe17b5
Merge pull request #40 from infil00p/master
...
Clean Merge of Classic Render Mode
2012-01-06 15:48:59 -08:00
macdonst
3172ae4525
Merge branch 'master' of git://github.com/cordova/cordova-android
2012-01-06 16:33:20 -05:00
macdonst
58774addad
CB-145: Android contact.save() crashes for native contacts.
2012-01-07 05:33:02 +08:00
bcurtis
8c191331ae
Merge branch 'master' of github.com:cordova/cordova-android
2012-01-05 15:21:16 -06:00
Bryce Curtis
7f7c211769
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-05 15:08:43 -06:00
Bryce Curtis
51bf8c39af
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-01-05 14:42:41 -06:00
Jukka Zitting
4bba9ac5a0
Minor incubation disclaimer fix.
2012-01-05 21:39:18 +01:00
Jukka Zitting
e9eb08486a
README.md: Replace "PhoneGap" with "Cordova" and add incubation disclaimer
...
(This is a test commit to for checking the git push problem by Bryce)
2012-01-05 21:33:26 +01:00
Bryce Curtis
3466ef6dfd
Merge pull request #1 from obrand/basic-auth
...
Added authentication framework
2012-01-05 09:27:02 -08:00
Olivier Brand
36bca7d609
Renamed crdentials/principals to userName/password
2012-01-05 08:26:54 -08:00
Joe Bowser
cc04b54adf
Merge branch 'master' of github.com:callback/callback-android
2012-01-04 16:02:03 -08:00
Olivier Brand
e96ae91800
Added authentication framework
2012-01-04 13:47:44 -08:00
macdonst
1d5af102c7
Camera default destination should be FILE_URI
2012-01-05 03:29:55 +08:00
macdonst
b106d2cae8
Proved generating sqlite database path to open database without permission error
2012-01-05 01:50:56 +08:00
macdonst
c66142d6b8
Fixing issue with FileTransfer.upload when the passed in url contains a ?
2012-01-04 00:48:29 +08:00
macdonst
5fac30ea34
Merge pull request #58 from libbybaldwin/add-compass-demo-android
...
add compass demo for Android
2011-12-22 10:01:55 -08:00
macdonst
fae551f0ce
Fix NullPointerException in DroidGap.onMeasure()
...
It looks like on some devices the onMeasure() method is called before the callbackServer is instantiated. This causes a NullPointerException which kills the application.
2011-12-22 09:51:11 +08:00
Libby Baldwin
65e3a8a453
add compass demo for Android
2011-12-19 18:30:54 -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
f95fdb5873
Fix for CB-104: Capture not returning an error code on cancel
2011-12-06 06:08:35 +08:00
macdonst
4b9e50146e
Tagging to 1.3.0rc1
2011-12-05 11:27:08 -05:00
macdonst
26408fabe4
Merge pull request #32 from willshen/master
...
A couple cleanup and bug fix in the code base
2011-12-01 10:11:44 -08:00
wshen
1dfc65face
removed FileExistsException that is not needed
2011-12-01 10:04:49 -08:00
wshen
18bf4cd94b
merging from callback
2011-12-01 09:59:42 -08:00
wshen
729d141c3f
removed FileExistsException that is not needed
2011-12-01 09:42:23 -08:00
macdonst
29001eeb3a
Merge pull request #42 from aflx/download
...
added download() to the filetransfer
2011-12-01 08:20:04 -08:00
macdonst
acc9173e6e
Merge pull request #46 from macdonst/reflect
...
Remove WebViewReflect.java from Android
2011-11-30 13:46:48 -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
Joe Bowser
2094854588
Merge branch 'master' of github.com:callback/callback-android
2011-11-29 14:04:17 -08:00
Alexander Keller
8dbb8f58b1
made getEntry of FileUtils public in order to avoid duplicate code in FileTransfer
2011-11-29 09:38:39 +01:00
Alexander Keller
75963c88d5
changes after review of macdonst, download returns FileEntry
2011-11-29 08:39:57 +01:00
macdonst
188e3e7d7d
Remove WebViewReflect.java from Android
...
While looking at issue #34 I realized that we don't need the WebViewReflect class anymore. Since we only support 2.1 or better and all the methods that WebViewReflect was protecting us from are available in the API version.
2011-11-28 15:44:36 -05: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
Joe Bowser
feff655530
Fixing merge error with the setInitialScale
2011-11-25 14:40:08 -08:00
Joe Bowser
71ea25f40a
Fixing scale, setting legacy scale
2011-11-25 14:38:11 -08:00
Joe Bowser
7840448133
Work-around Feature for Classic PhoneGap 320x480 resolution
2011-11-25 14:38:11 -08:00
macdonst
e77e552293
Fix for Issue #33 : onReceivedError incorrectly sets openExternal to true
2011-11-25 14:38:09 -08:00
William Shen
5ceb6e2cfa
Changed createCaptureFile to explicitly check for PNG and to throw an IllegalArgumentException if it is not a JPEG nor a PNG
2011-11-25 14:38:09 -08:00
Bryce Curtis
035ad08c69
Optimize enumerations as suggested by @plowman.
2011-11-25 14:38:08 -08:00
Bryce Curtis
80d0a0cb4c
Change API to postMessage() to call a plugin's onMessage() method.
2011-11-25 14:38:07 -08:00
macdonst
05e233bf1d
Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it
2011-11-25 14:38:06 -08:00
macdonst
853a734f82
Fix for Issue #33 : onReceivedError incorrectly sets openExternal to true
2011-11-25 05:29:24 +08:00
William Shen
d5580557f1
removed unused import
2011-11-23 11:25:53 -08:00
William Shen
7a6a59383b
removed a couple extra semicolons
2011-11-23 11:03:14 -08:00
macdonst
c70a1e8594
Fix for phonegap-android issue #261 : Wrong application scale
2011-11-24 02:56:00 +08:00
William Shen
cd5bf6195e
cleaning up handling of exceptions. removing unnecessary exception declaration in FileUtils. removing try-catch that should not have been done in HttpHandler
2011-11-23 10:52:43 -08:00
William Shen
7c8db0ea44
fixing redundant assignment of variable
2011-11-23 10:39:20 -08:00
macdonst
119f6cca85
Merge pull request #14 from willshen/master
...
Modified createCaptureFile in CameraLauncher to Improve Encoding Type Safety
2011-11-22 17:24:51 -08:00
Bryce Curtis
4a25d780ce
Optimize enumerations as suggested by @plowman.
2011-11-22 14:36:24 -06:00
Bryce Curtis
798cb3e347
Change API to postMessage() to call a plugin's onMessage() method.
2011-11-22 14:36:00 -06: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
Joe Bowser
36caaf366f
Merge pull request #25 from infil00p/minor_menu_tweak
...
Change based on new message passing API in IPlugin
2011-11-21 16:07:30 -08:00
macdonst
3ebfb6717c
Fix for CB-17: WebView caching resized pictures
2011-11-22 05:30:24 +08:00
Joe Bowser
9409caad69
Change based on new message passing API in IPlugin
2011-11-16 14:50:26 -08:00
macdonst
5406d6c98f
Linting the JS code
2011-11-17 04:38:11 +08:00
Joe Bowser
29c7e12505
Merge pull request #15 from infil00p/master
...
Working on Compliance, Removed the Crypto Library! Seriously guys, please read this!
2011-11-16 10:09:24 -08:00
Bryce Curtis
cbdd400fe7
Fix Issue #23 - Crash when using splash screen.
2011-11-15 23:13:49 -06:00
Bryce Curtis
a6db1112c6
Fix bug with showing loadingDialog property.
2011-11-15 23:06:29 -06:00
Bryce Curtis
bfef72a7c4
Add onload attribute to plugin in plugins.xml to create the plugin at load time instead of lazy loading.
2011-11-15 14:29:32 -06:00
Bryce Curtis
7ce2a8cb71
Make sure we clear appView history too.
2011-11-15 13:55:08 -06:00
Bryce Curtis
2a866e2a7c
Refactor backHistory() code so calling navigator.app.backHistory() has consistent behavior with backbutton.
2011-11-09 23:37:16 -06:00
Bryce Curtis
827af8a920
Deprecate addService().
2011-11-09 23:12:53 -06:00
Bryce Curtis
0caca9ae55
Remove old code.
2011-11-09 15:46:45 -06:00
Bryce Curtis
0bbcf5cfd2
Add onMessage(id, data) to plugin API.
...
A solution was needed to notify the audio player to pause when a phone call comes in. The option was to add a specific onPhone() method or generalize it. Since there are other "events" that are useful to plugins, a generalized solution was used. It is also extensible without changing the plugin API again.
Any plugin can call DroidGap.onMessage() to send a message/event to all other plugins. NetworkManager was updated to send changes in connection status to plugins, so they can intelligently handle lost connections.
2011-11-09 10:34:49 -06:00
Bryce Curtis
fd93404c7c
Backbutton should go back in appview history before going back in our history stack.
...
JQMobile uses htmlPage#div to navigate "multipage" apps. When the webview navigates between tags in the same page, it is added to the webview history.
2011-11-09 09:14:13 -06:00
Bryce Curtis
e9fcb296bb
Merge branch 'master' of github.com:callback/callback-android
2011-11-07 15:03:56 -06:00
Joe Bowser
d5d95ad489
Merging changes
2011-11-04 13:46:44 -07: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
William Shen
affab67ca3
Changed createCaptureFile to explicitly check for PNG and to throw an IllegalArgumentException if it is not a JPEG nor a PNG
2011-11-03 18:41:08 -07:00
macdonst
cf9848bd59
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 04:30:46 +08:00
Bryce Curtis
7ad3f76d9a
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-03 14:22:29 -05:00
Joe Bowser
7244a5a727
Merge branch 'master' of github.com:callback/callback-android
2011-11-02 13:10:50 -07:00
Fil Maj
538cdb03fc
No -e caused the bash script to fail
2011-11-02 12:01:36 -07:00
Bryce Curtis
8057bca4f2
Merge pull request #11 from nisc/remote-issue-11
...
Fixes to make example project build
2011-11-01 19:42:07 -07:00
nisc
546b33c936
Fixes to make example project build and compile
...
On Ubuntu 11.04, that is.
2011-11-01 22:04:28 +01:00
Bryce Curtis
9b5a63e8e4
Updated readme.
2011-10-31 21:14:05 -05:00
Bryce Curtis
798d502083
Update for 1.2.0.
2011-10-31 20:46:22 -05:00
Bryce Curtis
813637eb78
Update to download and run callback-test repository.
2011-10-31 20:45:38 -05: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
e1d3f1491f
Accidentally added stray char when changing the licence
2011-10-28 16:31:48 -07:00
Joe Bowser
5075a3e087
Merge branch 'master' of github.com:callback/callback-android
2011-10-28 13:26:17 -07:00
Joe Bowser
a35a33c05e
Adding the Apache Headers
2011-10-27 14:04:39 -07:00
Joe Bowser
5a40613ccc
Switching to ASF header for Callback
2011-10-27 12:04:54 -07:00
Bryce Curtis
2d690ad014
Use LOG instead of System.out.println for logging.
2011-10-26 14:28:39 -05:00
Fil Maj
ff2ee67cb8
JSPrompt "Security check" should whitelist all file URIs too
2011-10-25 15:34:32 -07:00
Joe Bowser
505081f42f
Merge branch 'master' of github.com:callback/callback-android
2011-10-25 15:21:15 -07:00
Joe Bowser
80ee464dce
Fix for Console.log, didn't call the super of the method needed
2011-10-25 15:21:06 -07:00
Bryce Curtis
e4a992095f
Set activity state correctly when ending activity.
2011-10-25 14:57:55 -05:00
Joe Bowser
aa6e011255
Removing the Camera permission, since it is not required by PhoneGap by default
2011-10-25 11:31:01 -07:00
Bryce Curtis
12816aa8f3
Run error dialog on UI thread.
2011-10-25 11:44:06 -05:00
Bryce Curtis
60b5d42324
Set activity state correctly when ending activity.
2011-10-25 11:39:37 -05:00
macdonst
d3d1c06c09
Merge pull request #2 from macdonst/webview
...
Fixing compilation error in DroidGap
2011-10-24 07:33:33 -07:00
macdonst
010e162cd7
Fixing compilation error in DroidGap
2011-10-24 10:32:14 -04:00
Bryce Curtis
191e1bf150
Merge branch 'master' of github.com:callback/callback-android
2011-10-21 16:44:12 -05:00
Bryce Curtis
cdeddf1bb2
Merge pull request #1 from brycecurtis/webview
...
Load multi-page apps in same webview and update pause/resume for consiste
2011-10-21 14:43:13 -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
Joe Bowser
64b770b761
Merge pull request #279 from infil00p/master
...
Clean-Up and Fix for Alert
2011-10-21 13:01:50 -07:00
Joe Bowser
628473cc5b
Making Alert cancellable so that it does not break the back button
2011-10-21 12:42:30 -07:00
Joe Bowser
75f3651376
Merge pull request #278 from infil00p/master
...
Modifying build.xml to use custom versions, adding ant files, and fixing HTC Logcat
2011-10-21 11:00:37 -07:00
Joe Bowser
3e25953d33
HTC Fix
2011-10-21 10:34:59 -07:00
hardeep
996791696b
Merge pull request #275 from imhotep/master
...
Improved whitelisting
2011-10-20 16:18:42 -07:00
Anis Kadri
a08854eaf0
improved whitelisting
2011-10-20 15:09:48 -07:00
Anis Kadri
81ec4bc4fb
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-10-20 13:58:11 -07:00
Joe Bowser
0b9ed0c7c7
Merging Simon's fix for Android 4
2011-10-20 13:54:26 -07:00
macdonst
ffb614dd91
Merge pull request #274 from macdonst/android4
...
Fixing Project Properties file
2011-10-20 13:49:10 -07:00
macdonst
e26685becf
Fixing Project Properties file
2011-10-20 16:48:16 -04:00
macdonst
90b8c20e28
Merge pull request #273 from macdonst/android4
...
Updating to use Android 4.0 build environment
2011-10-20 13:27:42 -07:00
macdonst
a8db71cd67
Updating to use Android 4.0 build environment
2011-10-20 16:26:30 -04:00
Joe Bowser
543fe1f43f
Upgrading to Ice Cream Sandwich
2011-10-20 11:13:44 -07:00
macdonst
1f2f9a02dd
Merge pull request #272 from macdonst/mediaErr
...
Media err normalization with iOS
2011-10-19 12:25:27 -07: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
Anis Kadri
ac509369e9
forgot to resolve conflict
2011-10-14 15:49:16 -07:00
Anis Kadri
5faed8378c
Merge branch 'master' of github.com:phonegap/phonegap-android
...
Conflicts:
framework/res/xml/phonegap.xml
framework/src/com/phonegap/DroidGap.java
2011-10-14 15:43:13 -07:00
Bryce Curtis
7ee04ebf31
Fix Issue #258 - navigator.app.exitApp() and navigator.app.backHistory() not working in PhoneGap 1.1.0 on Android
2011-10-12 11:22:35 -05:00
Joe Bowser
0ec47c5bd8
Merge pull request #264 from infil00p/master
...
This time, let's handle BOTH the Back Button and the Search Button
2011-10-10 14:23:29 -07:00
Bryce Curtis
fe3e7041b7
Don't override history.back since jQuery also does it.
2011-10-06 22:21:09 -05:00
Joe Bowser
75ab33ad0c
Adding handling of Search Button for the jsPrompt
2011-10-05 16:01:10 -07:00
Joe Bowser
1377f60b29
Merge pull request #263 from infil00p/master
...
Fix the back button on jsConfirm
2011-10-05 14:16:20 -07:00
Joe Bowser
8b595f9796
Fixing the jsConfirm so it doesn't break the back button
2011-10-05 13:57:38 -07:00
Bryce Curtis
1f8d6b4866
Use endActivity() for consistency. Improve error handling.
2011-10-04 21:32:42 -05:00
macdonst
ea87dfe08a
Merge pull request #259 from macdonst/issue257
...
Fix for Issue #257 : File Transfer with file:/// URIs
2011-10-04 08:57:37 -07:00
macdonst
2d388025ad
Fix for Issue #257 : File Transfer with file:/// URIs
2011-10-04 11:53:46 -04:00
Bryce Curtis
424078432a
Add comments and rename loadWhiteList() to loadConfiguration().
2011-10-03 10:49:27 -05:00
Bryce Curtis
bb2bd22fad
Correct log level comparison.
2011-10-03 10:29:14 -05:00
Bryce Curtis
6b29787df7
Merge pull request #247 from brycecurtis/LOG
...
Formalize logging with printf-type optimization.
2011-10-03 08:24:13 -07:00
macdonst
804ac714ae
Updating version number to 1.1.0
2011-10-01 03:57:06 +08:00
macdonst
9ede0ceca1
Merge pull request #250 from macdonst/delcam
...
Fixing issues in the Camera code
2011-09-30 11:33:06 -07: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
6098f46d08
When you use the File API to remove a file need to check to see if we need to delete a row from the content store
2011-09-29 23:09:44 -04:00
macdonst
367d7500d5
Deletes any duplicate images taken by camera
2011-09-29 22:29:35 -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
Bryce Curtis
a4d66c63a4
Call the initial onResume() on a plugin when it is created. This corrects the lifecycle behavior for plugins.
2011-09-28 22:40:53 -05:00
Bryce Curtis
6a9253e928
Formalize logging with printf-type optimization. Wrap Android log facilities instead of using System.out.println().
2011-09-28 22:19:23 -05:00
Bryce Curtis
0f988717d0
When app.exitApp() is called on multi-page app, pass to previous pages in stack and close them too.
2011-09-28 21:52:17 -05:00
Bryce Curtis
025577c41d
Add comment for method onOverrideUrlLoading()
2011-09-28 21:36:43 -05:00
macdonst
f271e2e0fa
Merge pull request #246 from macdonst/compass2
...
Fix for Issue #228 : Align Compass support with iOS
This is the second time I've had to merge this pull request.
2011-09-28 14:58:22 -07:00
macdonst
821eb24a54
Fix for Issue #228 : Align Compass support with iOS
2011-09-28 17:35:50 -04:00
Bryce Curtis
336a58ca5a
Clean up code and consolidate bindBrowser with init.
2011-09-28 10:03:05 -05:00
Bryce Curtis
aa6e4185de
Merge pull request #242 from brycecurtis/page2
...
Clean up code that loads sub-pages and correct behavior.
2011-09-28 07:54:52 -07:00
Bryce Curtis
75c2cdb3ad
Clean up code that loads sub-pages and correct behavior.
2011-09-27 15:59:42 -05:00
Bryce Curtis
e92057a00f
Merge pull request #241 from brycecurtis/whitelist
...
White list support. Enhance imhotep submission.
2011-09-26 09:18:39 -07: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
94c1fb3e63
Fix for issue #237 : DirectoryManager.getFreeDiskSpace() returns kilobytes instead of bytes free
2011-09-20 23:12:45 +08:00
macdonst
e9bb66622c
Merge pull request #233 from macdonst/is229
...
Issue #229 : Deprecate FileMgr code in file.js
2011-09-13 14:00:32 -07:00
macdonst
362841008a
fix for Issue #229 : Deprecate FileMgr code in file.js
2011-09-13 16:57:32 -04:00
macdonst
6fabcfc8d3
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-13 11:07:48 -04:00
macdonst
9040eea76c
Fix for Issue #213 : Unknown connection type for CDMA - EvDo rev. A
2011-09-13 23:07:17 +08:00
macdonst
9c0b15f7af
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-10 16:01:35 -04:00
macdonst
2b20b1880d
Fix for issue #196 : targetWidth/targetHeight ignored when PictureSourceType is library
2011-09-11 03:51:28 +08:00
macdonst
61c4836366
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-09 10:46:51 -04:00
Bryce Curtis
e8826090bb
Remove lingering code for old 1.x support.
2011-09-08 16:02:08 -05:00
Bryce Curtis
e1b3a8cdce
Cleanup formatting.
2011-09-08 15:43:08 -05:00
Bryce Curtis
0b6a39bc6f
Add ability to override url handling in plugins. This takes part of code from "Issue 216: Droidgap now allows plugins to override url loading" by davejohnson.
2011-09-08 15:36:20 -05:00
Dave Johnson
aa577416de
Fix so that we get the correct id when more than 9 targets
2011-09-07 16:31:29 -07:00
brianleroux
d34c0b086e
Merge branch 'master' of github.com:brianleroux/phonegap-android
2011-09-06 14:16:16 -07:00
macdonst
073f71563c
Fix for Issue #222 : Android plugin FileUploader with UTF-8 in params
2011-09-06 14:15:45 -07:00
macdonst
9eb02a4882
Fix bad tel: link in example/index.html
2011-09-06 14:15:45 -07:00
macdonst
6c3d13fc74
Fix for Issue #220 : Android audio streaming doesn't work for https
2011-09-06 14:15:45 -07:00
macdonst
70de3d49a2
Fix for Issue #218 : audio capture audio/3gpp mimetype getting set to video/3gpp
...
Works around an issue where MimeTypeMap.getMimeTypeFromExtension() always returns video/3gpp when the file extension is .3gp or .3gpp.
2011-09-06 14:15:45 -07:00
Dave Johnson
e41746b6a8
Add overrideUrlLoading overriding ... yeah ... to plugins by the plugin adding a <url-filter.../> and implmenting the onOverrideUrlLoading(...) method
2011-09-06 14:15:45 -07:00
macdonst
6af5e2e2e1
Fix for Issue #210 : devready event never fires if we can't get network connection info
2011-09-06 14:15:45 -07:00
macdonst
9083e921d9
Fix for Issue #208 : Media.release() accidentally makes a call to the Media error callback
2011-09-06 14:15:45 -07:00
Bryce Curtis
4a38f160fb
Re-checkin commit for "Fix Issue #203 : Prompt crashes on Android 3.2 tablet."
2011-09-06 14:15:45 -07:00
macdonst
0297807bd0
Fix for issue #141 : EXIF data stripped from captured photos in android
...
In order to fix this issue I needed to read the EXIF data. Save it to a temporary object then after the bitmap is compressed I open the file and write the saved EXIF data.
Supports the following EXIF fields if they are set in your image:
APERTURE
DATETIME
EXPOSURE_TIME
FLASH
FOCAL_LENGTH
GPS_ALTITUDE
GPS_ALTITUDE_REF
GPS_DATESTAMP
GPS_LATITUDE
GPS_LATITUDE_REF
GPS_LONGITUDE
GPS_LONGITUDE_REF
GPS_PROCESSING_METHOD
GPS_TIMESTAMP
ISO
MAKE
MODEL
ORIENTATION
WHITE_BALANCE
2011-09-06 14:15:45 -07:00
Bryce Curtis
2e9cbdf38d
Remove old phonegap.js file.
2011-09-06 14:15:44 -07:00
Bryce Curtis
498f879383
Fix Issue #203 : Prompt crashes on Android 3.2 tablet.
2011-09-06 14:15:44 -07:00
macdonst
91f4097fd8
Fix for Issue #222 : Android plugin FileUploader with UTF-8 in params
2011-09-06 23:31:02 +08:00
macdonst
0ece6cedfe
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-06 11:01:06 -04:00
brianleroux
f3fd6901d6
BOOM
2011-09-02 14:42:37 -07:00
macdonst
4f121aa07d
Fix bad tel: link in example/index.html
2011-09-03 01:35:01 +08:00
macdonst
4119fd513a
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-01 20:39:11 -04:00
macdonst
a6ae85b4ea
Fix for Issue #220 : Android audio streaming doesn't work for https
2011-09-02 08:38:28 +08:00
brianleroux
5ffdaeb213
updated readme
2011-09-01 14:44:02 -07:00
brianleroux
95c48f7f6c
fixing merge
2011-09-01 14:37:59 -07:00
brianleroux
d34dcf8ee5
cli moving to a phonegap folder, local to the proj and tests
2011-09-01 14:34:11 -07:00
brianleroux
e7f206b598
adding benchmarking automation
2011-09-01 13:15:19 -07:00
brianleroux
9aacb7f811
fixing rebase removing debug from root
2011-09-01 13:14:51 -07:00
brianleroux
caf2694ced
updated the improved cli docs
2011-09-01 13:12:10 -07:00
brianleroux
7bf8c617c3
slightly more coherent organization of concerns
2011-09-01 13:12:09 -07:00
brianleroux
9ad78a50f7
added node, nodeunit and a couple of stubbed in coffeescript tests
2011-09-01 13:12:09 -07:00
brianleroux
85a24d491e
adding benchmarking automation
2011-09-01 13:11:01 -07:00
macdonst
65fd082537
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-01 15:02:32 -04:00
macdonst
d9ec6df5a8
Fix for Issue #218 : audio capture audio/3gpp mimetype getting set to video/3gpp
...
Works around an issue where MimeTypeMap.getMimeTypeFromExtension() always returns video/3gpp when the file extension is .3gp or .3gpp.
2011-09-02 02:40:35 +08:00
macdonst
63bd7f470e
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-09-01 09:41:04 -04:00
Bryce Curtis
c419f7d269
Merge pull request #215 from davejohnson/feature/urlhandling
...
Add overrideUrlLoading overriding ... yeah ... to plugins by the plugin a
2011-08-31 07:56:23 -07:00
Dave Johnson
3e5a52ceee
Add overrideUrlLoading overriding ... yeah ... to plugins by the plugin adding a <url-filter.../> and implmenting the onOverrideUrlLoading(...) method
2011-08-30 16:52:56 -07:00
Anis Kadri
97faebda41
adding isUrlWhiteListed in shouldOverrideUrlLoading
2011-08-29 17:35:11 -07:00
Anis Kadri
f111ea56ed
whitelist support
2011-08-29 16:13:02 -07:00
Anis Kadri
e2acd1af33
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-08-29 15:46:27 -07:00
macdonst
ff4ea29713
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-26 16:16:45 -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
Dave Johnson
75233711e3
Moved around the scripts so that you can create a self contained project that you can run debug, emulate and log from
2011-08-26 10:54:37 -07:00
macdonst
4b488fc911
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-25 12:45:03 -04:00
macdonst
facb752cc7
Fix for Issue #208 : Media.release() accidentally makes a call to the Media error callback
2011-08-26 00:16:37 +08:00
macdonst
c5d3a60f56
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-23 09:38:21 -04:00
Bryce Curtis
8a5dec8d8b
Re-checkin commit for "Fix Issue #203 : Prompt crashes on Android 3.2 tablet."
2011-08-22 16:22:22 -05:00
macdonst
43baa58ab3
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-22 13:48:06 -04:00
macdonst
a9c34e65fb
Fix for issue #141 : EXIF data stripped from captured photos in android
...
In order to fix this issue I needed to read the EXIF data. Save it to a temporary object then after the bitmap is compressed I open the file and write the saved EXIF data.
Supports the following EXIF fields if they are set in your image:
APERTURE
DATETIME
EXPOSURE_TIME
FLASH
FOCAL_LENGTH
GPS_ALTITUDE
GPS_ALTITUDE_REF
GPS_DATESTAMP
GPS_LATITUDE
GPS_LATITUDE_REF
GPS_LONGITUDE
GPS_LONGITUDE_REF
GPS_PROCESSING_METHOD
GPS_TIMESTAMP
ISO
MAKE
MODEL
ORIENTATION
WHITE_BALANCE
2011-08-23 01:47:10 +08:00
macdonst
5180340f18
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-22 13:27:18 -04:00
Bryce Curtis
8a4737947b
Remove old phonegap.js file.
2011-08-22 09:50:42 -05:00
Bryce Curtis
0e316321f9
Fix Issue #203 : Prompt crashes on Android 3.2 tablet.
2011-08-21 20:50:57 -05:00
Dave Johnson
ef8e8a3ab4
Fix up a few things for the ant create to work on mac
2011-08-21 00:29:07 -07:00
brianleroux
fe265ce9e1
added optional path to debug
2011-08-20 13:57:19 -07:00
davejohnson
28b972be52
Add new windows create script for android as a cscript script. Also created an ant xml that should work on mac too.
2011-08-20 13:42:46 -07:00
davejohnson
4a9fbb6869
Remove xlargescreen since it is only supported if you are building with the latest SDK. Yes people *should* be building with that but it's not even on any phones yet
2011-08-20 13:30:11 -07:00
davejohnson
8cf00fc788
Moved default plugins.xml, www, and manifest.xml into a folder structure that can be straight copied over a new android project. change the bash script to update the target of the phonegap framework dir before building
2011-08-20 13:27:53 -07:00
brianleroux
8b908fbad0
updated the improved cli docs
2011-08-19 22:20:53 -07:00
brianleroux
e44cc8add1
slightly more coherent organization of concerns
2011-08-19 21:50:46 -07:00
brianleroux
5a3208291c
added node, nodeunit and a couple of stubbed in coffeescript tests
2011-08-19 20:39:35 -07:00
brianleroux
1c064b0922
test fully automated from mobile-spec edge
2011-08-18 22:40:09 -07:00
brianleroux
ffdb240114
auto launching on debug
2011-08-18 19:39:27 -07:00
brianleroux
2f9060dd3e
first pass at a test script
2011-08-18 19:20:41 -07:00
brianleroux
efe021916e
slightly better docs
2011-08-18 18:31:13 -07:00
brianleroux
65cf68b5d2
no more ruby dependency
2011-08-18 18:21:51 -07:00
macdonst
91d8dd42c1
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-17 15:45:35 -04:00
macdonst
7e2044c5b4
Merge pull request #195 from m00sey/master
...
Expose Volume control
2011-08-17 12:45:09 -07:00
macdonst
3666490347
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-17 13:45:24 -04:00
macdonst
80891b8495
Fix for Issue #200 : NetworkManager missing HSDPA in getType
...
Added HSDPA, HSUPA, HSPA and HSPA+ type detection to NetworkManager.
2011-08-18 00:42:57 +08:00
macdonst
55379d6fba
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-12 11:45:52 -04: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
macdonst
19040671a9
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-11 17:01:07 -04:00
Bryce Curtis
4ecfbac586
Include plugin reference and permissions for battery events.
2011-08-11 15:37:11 -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
381d1615b4
formatting
2011-08-09 23:19:50 -04:00
Kevin Griffin
ad8086fab5
exposing volume control
2011-08-09 23:18:01 -04:00
Anis Kadri
19332c1903
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-08-09 16:25:19 -07:00
macdonst
fd22a7915e
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-08-01 21:18:28 -04:00
macdonst
8c7db9aa32
Remove redundant import when droidgap create is run
2011-07-31 03:19:01 +08:00
macdonst
7bb34dea14
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-29 00:02:07 -04:00
macdonst
004453b03f
Upping version to 1.0.0
2011-07-29 12:01:46 +08:00
macdonst
a1edf92fa4
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-28 23:58:09 -04:00
macdonst
e28458869f
Issue #185 : Fix mis-spelling in file.js
2011-07-29 11:56:29 +08:00
Anis Kadri
b4c4fa9667
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-07-26 17:01:40 -07:00
macdonst
229e15f685
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-26 00:31:37 -04:00
macdonst
39d6952494
Upping version to 1.0.0rc3
2011-07-26 12:30:41 +08:00
macdonst
b864a8a6c6
Upping version to 1.0.0rc3
2011-07-26 00:20:35 -04:00
macdonst
f5dac1451d
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-26 00:18:33 -04:00
macdonst
2bf765897b
Normalize Android Camera.takePicture with iOS and BB versions.
...
Both iOS and BlackBerry support the PNG image format so I added support for Android.
Also, iOS and BB use targetWidth/targetHeight to specify the resolution of the image. I've swiched from using maxResolution to targetWidth/targetHeight in this change list.
2011-07-26 12:18:04 +08:00
macdonst
411288b051
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-25 11:05:38 -04:00
macdonst
1c97467e39
Issue #169 : Media.seekTo() does not update Media._position value.
...
Calling Media.seekTo() now updates the Media._position value. I could not make seekTo() to work when your audio clip is not playing as that is not a supported action of the AndroidMedia player class.
2011-07-23 03:21:45 +08:00
macdonst
7c39edfcd0
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-21 22:31:26 -04:00
macdonst
9f673db79f
Issue #176 : rc2 for Android does not have updated main.js - demo app code
...
This commit fixes the issue in main.js but it will still need to be packaged up in the rc3 zip.
2011-07-22 10:06:43 +08:00
Dave Johnson
8c807315e9
there was a "Location" and a "Geolocation" plugin defined. We use "Geolocation" in the JavaScript
2011-07-21 16:42:59 -07:00
Joe Bowser
be48b576d9
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-07-21 13:16:09 -07:00
Joe Bowser
648e56cb67
Merging maxResolution
2011-07-21 13:15:52 -07:00
macdonst
b37defd3cf
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-21 15:18:10 -04:00
macdonst
c093881f54
Issue #174 : contact attribs should return null instead of empty array
...
Currently the implementation will return an empty array for the following Contact attributes: phoneNumbers, emails, addresses, ims, organizations, addresses, websites and photos. With this fix these attributes will be null unless the lenght of the array is greater than 0.
2011-07-22 03:16:45 +08:00
Brian LeRoux
e09c728fd0
Edited framework/src/com/phonegap/DroidGap.java via GitHub
2011-07-21 11:47:20 -07:00
macdonst
d098b6133e
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-21 11:59:41 -04:00
Anis Kadri
c067299ace
Merge github.com:phonegap/phonegap-android
2011-07-20 13:17:00 -07:00
macdonst
029ddeade0
Fix Issue #170 : Sub pages reload on orientation or keyboard changes
...
Needed to add android:configChanges="orientation|keyboardHidden" to the com.phonegap.DroidGap activity in AndroidManifest.xml.
2011-07-20 23:21:34 +08:00
macdonst
17ccb2db4d
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-20 11:13:33 -04:00
Bryce Curtis
6b84ead393
Issue #167 : Remove window.app and use navigator.app instead. Remove App() from namespace.
2011-07-19 11:00:13 -05:00
macdonst
9bf3a82964
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-18 16:11:51 -04:00
macdonst
7afa2d3840
Upping version to 1.0.0rc2
2011-07-19 04:11:17 +08:00
macdonst
e789349c23
Handle content:// uri's in resolveLocalFileSystemURI
...
Sometimes Android will hand you a content:// uri in the place of a file path. Particularily the Camera.getPicture() code will do this. I've updated the file utils code to handle this type of uri and return a real file path.
2011-07-19 04:10:55 +08:00
macdonst
f7ebc98375
Upping version to 1.0.0rc2
2011-07-18 12:48:26 -04:00
Bryce Curtis
2787a960d8
Issue #153 : Display default value in prompt().
2011-07-16 15:07:34 -05:00
Dave Johnson
4af8952dc3
Merge pull request #161 from don/master
...
Write error to log when plugins.xml is missing
2011-07-15 22:03:42 -07:00
Don Coleman
701717fd55
remove comment from xml declaration
2011-07-15 23:47:08 -04:00
Don Coleman
3de2084af2
write error to log when plugins.xml is missing
2011-07-15 23:45:32 -04:00
Joe Bowser
6d532c9fe5
Minor change to Android Manifest for Android 3.2 to force it out of Compatibltiy Mode
2011-07-15 16:19:08 -07:00
macdonst
eb0e0d9d11
Issue #156 : Camera.DestinationType.FILE_URI on Android not conforming to API Spec
...
Instead of capturing the orginal image to /sdcard/Pic.jpg or /sdcard/Capture.jpg we detect if the SD card is mounted. If mounted the file is placed in the apps temp directory at:
/sdcard/Android/data/{package name}/cache/
If the SD card is not mounted we default to internal storage at:
/data/data/{package name}/cache/
2011-07-16 05:03:48 +08:00
Bryce Curtis
53410781e4
Issue #154 : Propagate existing parameters when starting new DroidGap activity.
2011-07-15 15:00:12 -05:00
Bryce Curtis
2bee9a8442
Remove deprecated addService() method. The new way to register a plugin is to include it in res/xml/plugins.xml.
2011-07-15 14:26:20 -05:00
Bryce Curtis
7c9eca1fab
Replace deprecated call to activityStop.
2011-07-15 14:04:46 -05:00
Bryce Curtis
017fa1b917
Use the same database based upon application context for each html page loaded as part of this app.
2011-07-13 16:48:29 -05:00
Bryce Curtis
24bb836221
Shouldn't return error on first call. This prevents successful invocation, which prevents deviceready from firing.
2011-07-13 00:21:34 -05:00
macdonst
6993c7edd1
Merge pull request #152 from macdonst/issue151
...
Issue151: Remove minification of phonegap.*.js file
2011-07-12 15:03:25 -07:00
macdonst
4cc3772e84
Issue #151 : Remove minification of phonegap.*.js file
2011-07-12 15:33:46 -04:00
macdonst
2a3c387ce3
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-12 12:23:34 -04:00
macdonst
c80ddc1b22
Issue #149 : Deprecate support for Android 1.X devices
...
Right now we are just removing the code for Contacts on 1.5/1.6 devices. We still need to keep around our implementation of Geolocation and Storage for older devices since some versions of Android have broken implementations of these features. Android 3.0 I'm looking at you!
2011-07-13 00:18:38 +08:00
macdonst
e1092590d6
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-12 11:05:56 -04:00
macdonst
24f979394f
Remove deprecated Network.isReachable (use the Network Information API instead)
2011-07-12 23:01:42 +08:00
macdonst
9971d61601
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-12 10:58:28 -04:00
Bryce Curtis
6c65a6a016
Make sure we load the correct resource id for plugins.xml.
2011-07-11 22:56:20 -05:00
macdonst
37b9cc47bd
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-11 23:30:41 -04:00
macdonst
66f7afbed2
Issue #146 : File API - File::writeAsText not in the API, remove
2011-07-12 11:13:24 +08:00
macdonst
b1c0be3dd6
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-11 22:53:46 -04:00
Dave Johnson
60be45b9d9
Fix example to not include the min.js that is non-existent
2011-07-11 18:21:55 -07:00
macdonst
393bd5a1f5
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-11 17:28:56 -04:00
macdonst
1de036a744
Setting version as 1.0.0rc1
2011-07-12 05:25:53 +08:00
macdonst
a235513991
Setting version as 1.0.0rc1
2011-07-11 17:24:33 -04:00
macdonst
22a9cabeb9
Updating Contacts for June 16th W3C Spec
2011-07-11 23:18:24 +08:00
Bryce Curtis
5de4ae7554
Remove dependency on notification.activityStart/Stop so they can be deprecated to an optional plugin. Also remove hideLoadingDialogOnPage option, since it no longer is relevant.
2011-07-08 23:07:22 -05:00
Bryce Curtis
f19d8f9bba
Change to PhoneGap naming convention affects droidgap creation & update. Also, create script uses phonegap-x.js, not phonegap-x.min.js.
2011-07-08 16:27:57 -05:00
macdonst
d4ccc702b2
Merge pull request #145 from macdonst/fixJar
...
Update .gitignore and .jar file name
2011-07-08 13:44:45 -07:00
macdonst
a0c748620a
Update .gitignore and .jar file name
2011-07-08 16:40:55 -04:00
macdonst
b85a769372
Merge pull request #144 from macdonst/is129
...
Fix for #129 : PhoneGap JS Naming Convention
2011-07-08 12:03:26 -07:00
macdonst
dd52081deb
Fix for #129 : PhoneGap JS Naming Convention
2011-07-08 14:35:31 -04:00
macdonst
ebd92a4b12
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-07 16:49:22 -04:00
Bryce Curtis
0a7a77e77b
Accept IPlugin for result callback when starting activities for result.
2011-07-07 14:11:03 -05:00
Bryce Curtis
9d1e73656f
Merge pull request #138 from davejohnson/iplugin-fix
...
Update PluginManager to accept plugins implementing IPlugin too
2011-07-07 12:00:36 -07:00
macdonst
6e62a76564
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-07 13:08:25 -04:00
macdonst
3895570edd
Fixed Issue 140: Contact.displayName is not being set correctly
2011-07-08 01:06:27 +08:00
Fil Maj
28b01fe494
Fix for #120 : zooming in on input elements when filling out forms. Note, you also have to set initial-scale and maximum-scale properties in your meta name=viewport tag.
2011-07-07 09:19:39 -07:00
macdonst
709eacd9dc
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-07-07 11:49:24 -04:00
Dave Johnson
090890b22a
Update PluginManager to accept plugins that implement IPlugin rather than extend Plugin
2011-07-07 00:12:44 -07:00
Bryce Curtis
ce9d577415
Remove unused code and variable.
2011-07-06 13:56:49 -05:00
Bryce Curtis
cfc9631873
Copy plugins.xml when creating a new project.
2011-07-06 13:36:29 -05:00
Bryce Curtis
3bf48f82af
Merge pull request #136 from brycecurtis/plugins
...
Loading plugins from res/xml/plugins.xml
2011-07-06 11:12:20 -07:00
Dave Johnson
f9bcf71a7a
Merge pull request #134 from davejohnson/plugin-refactor
...
Plugin refactor
2011-07-06 11:10:00 -07:00
Bryce Curtis
9d5aa9406c
Loading plugins from res/xml/plugins.xml
2011-07-05 23:21:32 -05:00
Dave Johnson
0b1e760fc1
Add better support for Activity result callbacks from plugins. Add some sugar for calling success / error callbacks from plugins
2011-07-05 14:13:55 -07:00
Dave Johnson
941b64f6a2
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-06-30 13:43:06 -07:00
macdonst
7cc1cc4a3f
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-30 15:43:50 -04:00
Bryce Curtis
c98b758e94
Update version to 0.9.6.1
2011-06-30 13:15:30 -05:00
macdonst
102d37d48a
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-30 11:58:12 -04:00
Bryce Curtis
4b647fc58d
Merge pull request #128 from brycecurtis/pages
...
Update version number and fix issues with prompt().
2011-06-30 08:56:53 -07:00
Bryce Curtis
b7156c6803
Bump up version to 0.9.6 for example.
2011-06-30 10:53:23 -05:00
Bryce Curtis
b8cc36e805
Don't clear activity stack by default.
2011-06-30 10:42:27 -05:00
Bryce Curtis
76b2df208e
Add comment
2011-06-29 18:28:29 -05:00
Bryce Curtis
9643314553
Add more control over how url is loaded.
2011-06-29 18:25:49 -05:00
Bryce Curtis
1e3422ae70
Load new urls in new DroidGap activity - not same webview as initial url.
2011-06-29 18:23:20 -05:00
Bryce Curtis
fc1bea4947
Update version to 0.9.6.
2011-06-29 16:43:52 -05:00
macdonst
afb48e52b6
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-29 09:55:31 -04:00
Fil Maj
b5dc62d9ef
fix to build script: gotta strip out new lines from read in version string
2011-06-28 15:20:13 -07:00
macdonst
2a786044de
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-28 14:26:50 -04:00
Joe Bowser
f3d7ce8fc3
VERSION:
2011-06-27 16:01:43 -07:00
Bryce Curtis
85dab52cf7
Handle errors when adding a service.
2011-06-27 13:49:24 -05:00
Bryce Curtis
c96c9b00b9
Revert to polling if there are any errors with callback server. This addresses various problems with proxies set by carriers.
2011-06-27 13:48:02 -05:00
Joe Bowser
b059a31787
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-06-27 10:23:16 -07:00
Joe Bowser
8cb71673c2
Changing default target to the highest for maximum compatibility
2011-06-27 10:22:57 -07:00
macdonst
5c8913351c
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-27 12:34:33 -04:00
macdonst
8ef93ff0e5
Issue 123: Fixing problem where name object is not specified
2011-06-28 00:34:11 +08:00
Joe Bowser
042c34192b
Trying to merge
2011-06-24 14:09:34 -07:00
macdonst
ac2e92321f
Issue #121 : Problem with resolveLocalFileSystemURI if file name has spaces
2011-06-24 14:08:46 -07:00
Bryce Curtis
05eacf4792
Always call plugin's onPause/onResume with multitasking flag when these lifecycle events occur in activity. It is up to the plugin to handle as necessary.
2011-06-24 14:08:46 -07:00
Kevin Griffin
435c903baf
formatting - sigh
2011-06-24 14:08:46 -07:00
Bryce Curtis
53de070a41
Return true when handling key events, indicating that no further processing is necessary.
2011-06-24 14:08:46 -07:00
Bryce Curtis
54fdcbfd46
Urls with same path and file but different # or ? should compare to same url.
2011-06-24 14:08:46 -07:00
Joe Bowser
44aa0aeb0f
Adding SSL dev code
2011-06-24 14:08:46 -07:00
Kevin Griffin
7d53eb8e3e
formattage
2011-06-24 14:08:46 -07:00
Joe Bowser
7bc0d624ac
Fixing conflict
2011-06-24 14:08:26 -07:00
Kevin Griffin
a5039f021d
made the mistake of opening anything in finder
2011-06-24 14:06:21 -07:00
Bryce Curtis
80e66d87a9
Issue 112: PhoneGap.Channel: replace instanceof Function with typeof === 'Function'
2011-06-24 14:06:21 -07:00
Bryce Curtis
d35e8cd44b
Fix security vulnerability - make sure any requests to run native code only come from url currently loaded into webview.
2011-06-24 14:06:20 -07:00
Benjamin Weingarten
eb3b1f91d4
Fix bug where isreachable doesn't return correct results for https
...
(http secure) url protocol.
2011-06-24 14:06:20 -07:00
macdonst
8a1ab69235
Updating Network Connection API to match spec released on June 7th
2011-06-24 14:06:20 -07:00
Bryce Curtis
66f3018767
Set PhoneGap.UsePolling flag based upon result from CallbackServer.
2011-06-24 14:06:20 -07:00
macdonst
ff7de25b62
Issue #106 : Typo in LocalFileSystem.prototype._castDate
2011-06-24 14:06:20 -07:00
macdonst
85eb6e4997
Issue #104 : Bug in FileUtils.copyDirectory & moveDirectory
...
Adding better test to see if a directory is being moved/copied into itself.
Copy /sdcard/myDir to /sdcard/myDir-backup is okay but
Copy /sdcard/myDir to /sdcard/myDir/backup should thow an INVALID_MODIFICATION_ERR
2011-06-24 14:06:20 -07:00
macdonst
0280d5dd82
Updating Connection object to conform with recently released spec
...
- Replacing currentNW and homeNW with networkName.
- Changing Connection constants to strings instead of ints.
- Firing online/offline events on network change.
2011-06-24 14:06:20 -07:00
Nitobi
3c90a9a23c
Fixed droidgap update command
2011-06-24 14:06:20 -07:00
macdonst
088c342198
Improve performance of our encoding
...
Move from using String.replaceAll() to a modified version or URLEncoder.encode().
2011-06-24 14:06:20 -07:00
macdonst
af18a8e1aa
Issue #80 : Unable to open large json files on android 2.2 + phonegap 0.9.5
...
I could not get rid of the url encoding and decoding without hampering some users ability to pass non-ascii characters back to JavaScript. However, I was able to reduce the amount of data being passed from Java to JavaScript by 40% by decoding common characters that occur in JSON and XML. These characters will survive the round trip just fine and don't need to be encoded.
This is the best solution I could come up with. You won't be able to read files as large as you could in 0.9.4 but it will get close and it will support non-ascii characters.
2011-06-24 14:06:20 -07:00
Joe Bowser
11a29e11e1
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-06-24 14:02:02 -07:00
macdonst
226e4dddcd
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-24 16:43:31 -04:00
macdonst
08c44f5c5d
Issue #121 : Problem with resolveLocalFileSystemURI if file name has spaces
2011-06-25 04:41:19 +08:00
macdonst
66dbd9ef8b
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-24 10:56:05 -04:00
Bryce Curtis
1c3ea54dcb
Always call plugin's onPause/onResume with multitasking flag when these lifecycle events occur in activity. It is up to the plugin to handle as necessary.
2011-06-23 23:22:48 -05:00
Bryce Curtis
a65638ab59
Merge pull request #118 from m00sey/master
...
Always fire onPause, onResume and onNewIntent events for Plugins.
2011-06-23 20:51:35 -07:00
macdonst
1a9471a2e0
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-22 14:48:49 -04:00
Kevin Griffin
c15971253f
formatting - sigh
2011-06-22 11:05:33 -04:00
Bryce Curtis
a67dfdb75e
Return true when handling key events, indicating that no further processing is necessary.
2011-06-21 22:53:45 -05:00
Bryce Curtis
9b52827744
Urls with same path and file but different # or ? should compare to same url.
2011-06-21 22:50:53 -05:00
Fil Maj
c5b268756b
Merge pull request #103 from doggerelverse/droidgap_update
...
Fixed droidgap update command
2011-06-21 17:22:02 -07:00
Joe Bowser
afa85a74b3
Adding SSL dev code
2011-06-21 10:08:42 -07:00
Kevin Griffin
517b5e0db9
formattage
2011-06-21 11:46:54 -04:00
Kevin Griffin
327bda49a0
Sending pause/resume notifcations to plugins regardless of 'keepRunning' state.
...
Not sure why you wouldn't want to send them
Added a OnNewIntent override for Plugins to use.
2011-06-21 11:32:22 -04:00
Kevin Griffin
c978341d83
made the mistake of opening anything in finder
2011-06-21 11:32:18 -04:00
macdonst
939754e1c9
Merge pull request #110 from Worklight/isReachble_fix
...
Fix bug where isReachable doesn't return correct results for https
2011-06-20 09:48:55 -07:00
macdonst
5e733ede9f
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-16 09:57:02 -04:00
Bryce Curtis
d1448e9073
Issue 112: PhoneGap.Channel: replace instanceof Function with typeof === 'Function'
2011-06-15 13:01:03 -05:00
macdonst
e5fb0c0e71
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-14 09:59:19 -04:00
Bryce Curtis
33bfb44f67
Fix security vulnerability - make sure any requests to run native code only come from url currently loaded into webview.
2011-06-13 15:16:08 -05:00
Benjamin Weingarten
a89c8bf482
Fix bug where isreachable doesn't return correct results for https
...
(http secure) url protocol.
2011-06-12 13:50:49 +03:00
macdonst
b46cbfd673
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2011-06-08 15:17:36 -04:00
macdonst
a67aeed571
Updating Network Connection API to match spec released on June 7th
2011-06-09 03:11:39 +08:00
macdonst
fbb6b22de6
Updating Network Connection API to match spec released on June 7th
2011-06-08 15:03:03 -04:00
Bryce Curtis
315b5a59b3
Set PhoneGap.UsePolling flag based upon result from CallbackServer.
2011-06-07 14:18:18 -05:00
macdonst
8da5ad8eca
Issue #106 : Typo in LocalFileSystem.prototype._castDate
2011-06-07 22:03:58 +08:00
macdonst
740e50ce61
Issue #104 : Bug in FileUtils.copyDirectory & moveDirectory
...
Adding better test to see if a directory is being moved/copied into itself.
Copy /sdcard/myDir to /sdcard/myDir-backup is okay but
Copy /sdcard/myDir to /sdcard/myDir/backup should thow an INVALID_MODIFICATION_ERR
2011-06-07 03:12:55 +08:00
macdonst
3ce0fc4897
Updating Connection object to conform with recently released spec
...
- Replacing currentNW and homeNW with networkName.
- Changing Connection constants to strings instead of ints.
- Firing online/offline events on network change.
2011-06-07 02:36:01 +08:00
Nitobi
8d1722ad67
Fixed droidgap update command
2011-06-03 10:59:48 -07:00
macdonst
7d41646a35
Improve performance of our encoding
...
Move from using String.replaceAll() to a modified version or URLEncoder.encode().
2011-06-02 10:31:56 +08:00
macdonst
992ee0bca4
Issue #80 : Unable to open large json files on android 2.2 + phonegap 0.9.5
...
I could not get rid of the url encoding and decoding without hampering some users ability to pass non-ascii characters back to JavaScript. However, I was able to reduce the amount of data being passed from Java to JavaScript by 40% by decoding common characters that occur in JSON and XML. These characters will survive the round trip just fine and don't need to be encoded.
This is the best solution I could come up with. You won't be able to read files as large as you could in 0.9.4 but it will get close and it will support non-ascii characters.
2011-06-01 21:27:27 +08:00
Joe Bowser
d00a9f33cd
Merge branch 'master' of github.com:phonegap/phonegap-android into keyboard
2011-05-31 15:41:03 -07:00
Joe Bowser
431c80782e
Changing the layout class so it has the screen dimensions to take into account Device Orientation
2011-05-31 15:38:03 -07:00
Bryce Curtis
39ec9c095d
Need to unregister for network intent receiver on shutdown to prevent leaks.
2011-05-31 15:13:54 -05:00
Bryce Curtis
10e1808c56
Clean up CallbackServer when about:blank page has loaded. This fixes errors when shutting down.
2011-05-31 15:11:02 -05:00
macdonst
9036eb8fcc
Issue #94 : feature request: Event for Keyboard show/hide
2011-05-30 15:12:31 -04:00
Fil Maj
4280fdf252
Fix for ticket #58 : Certain 1.5/1.6 devices would throw a FileNotFoundException when taking pictures. Patch submitted by Agustin of AVANTIC (thanks!).
2011-05-26 12:42:44 -07:00
macdonst
ca5e141b5b
Changing Media class to return seconds
...
The media commands getCurrentPosition() and getDuration() will now return seconds (float) instead of milliseconds to line up with iOS and the docs.
2011-05-27 01:54:48 +08:00
Dave Johnson
8f7a5decb6
Add DS_Store to gitignore
2011-05-25 17:28:24 -07:00
macdonst
1d79b6617b
JavaScript cleanup to pass jsHint
...
I did my best to clean up the JavaScript so it would pass through jsHint more cleanly. There still are issues but there are a lot fewer now. This helped to make the JS code more consistent.
2011-05-21 02:31:24 +08:00
macdonst
6c3eefe6f9
Issue #85 : window.openDatabase throws DOM Exception 18 on Android 3.1
...
Instead of checking the userAgent catch the exception. If we do get an exception it will setup our version of Droid Db.
2011-05-21 02:13:03 +08:00
macdonst
2177cd0a39
Moving navigator.connection to navigator.device.connection
...
Android 2.2 introduces the navigation.connection interface but it does not work properly in WebView. So in order to get the proper connection information we had to implement our own connection interface which is accessible at navigator.network.connection.
2011-05-18 03:26:31 +08:00
macdonst
6618015151
Fixing a number of issues in File API
...
Issue #82 : The RandomAccessFile class in Android's version of Java does not write non-ASCII characters very well. I've switched to using a FileOutputStream which seems to work just great. Tested by myself and folks from Egypt and the Netherlands.
Issue #87 : Fixed a problem where the file errors were being returned as evt.target.result.code.code.
2011-05-17 22:11:38 +08:00
macdonst
e99f75d59b
Issue #85 : window.openDatabase throws DOM Exception 18 on Android 3.1
...
The way were were detecting we were on an Android 3.0 device was not applicable for Android 3.1. I've made and update so that any Android 3.X device will use our implementation of web sql databases instead of the built in one which thows a security error.
2011-05-16 23:14:24 +08:00
macdonst
ab8cfe01d0
Removing generated code from project
...
framework/gen/com/phonegap/R.java
2011-05-16 10:37:25 +08:00
macdonst
e84c59d23c
Merge pull request #78 from kernelsandirs/master
...
Added Media.seekTo(int milliseconds);
Merging this code in now and making some notes to enhance the Media class.
2011-05-15 19:32:02 -07:00
macdonst
e81fc239a7
Setting defaults in Media Capture
...
Some tests of Media Capture were failing as the CaptureAudio/Image/VideoOptions objects did not have defaults set.
2011-05-14 01:10:18 +08:00
Bryce Curtis
839c577243
Need to use EclairClient for 3.x devices too. This fixes the HTML5 geolocation problem on Android 3.x.
2011-05-10 11:44:09 -05:00
macdonst
116169a4c5
Issue #79 : FileWriter.seek() is broken in 0.9.5.
...
The FileEntry.createWriter() method passes in a FileEntry object instead of a File object. As a result the FileWriter.length was not being set properly so when you do a writer.seek(writer.length) it would go to 0, so your next write would overwrite your file.
In order to fix this issue the FileEntry.createWriter() method now makes a call to FileEntry.file() to get the correct file size. The File object is now passed to the FileWriter constructor.
2011-05-07 00:41:57 +08:00
macdonst
346ed60f0d
Android 2.2+ supports W3C Connection API
...
For Android version 2.2 or better the navigator.connection object already
exists. If this case we should immediately fire the onPhoneGapConnectionReady
event so we don't tie up the 'deviceready' event.
2011-05-06 04:22:38 +08:00
defrex
bde59adc04
Add docs and fixed to pass through the Google Closure Compiler without warnings
2011-05-04 16:00:03 -07:00
kernelsandirs
ffbc010d7b
Added Media.seekTo(int milliseconds);
2011-05-04 11:51:26 -07:00
macdonst
bdadbbc339
Implement W3C Network Information API
...
Adding a new object to navigator called 'connection'. Users can query the
connection object to find out what type of network, if any, the device is
connected to. The connection object will be updated each time there is a
connectivity change on the device.
2011-05-04 22:23:16 +08:00
kernelsandirs
b94eedaf07
Added Media.seekTo(int milliseconds);
2011-05-03 21:27:08 -07:00
macdonst
58ecac335b
Capture modifications:
...
Renaming supportedAudioFormats to supportedAudioModes.
Renaming supportedImageFormats to supportedImageModes.
Renaming supportedVideoFormats to supportedVideoModes.
Adding copywrite header to the Capture.java file.
2011-05-03 00:12:19 +08:00
macdonst
fd8bb2f671
Issue 72: Contact.Save: onSuccess callback is called when contact is not saved.
2011-04-29 02:08:25 +08:00
Bryce Curtis
0aacfbdd50
Update version to 0.9.5
2011-04-27 14:10:13 -05:00
macdonst
2cd116e4e7
Issue 60: Contact search unicode problem
...
Contact search was not working for unicode letters. The CallbackServer was changed so that it returned url encode strings. On the JavaScript side the PhoneGap callback handler decodes the returned string.
2011-04-25 22:22:12 +08:00
Bryce Curtis
673a8871df
Ticket 136: window.openDatabase() in Android 3.0 throws SECURITY_ERR (most code written by Simon MacDonald - I just tested and checked in)
...
When you call window.openDatabase() on an Android 3.0 device you get and error something like this:
E/Web Console( 1791): SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
Simon worked with Pat for a bit and they think this is a WebKit or Android/WebKit interaction bug. In the meantime this fix determines if you are on Android 3.0 and uses Droid_DB if so.
2011-04-19 16:54:16 -05:00
Fil Maj
44945f9d5e
Partial resolution for ticket 57: some issues with camera functionality not firing callbacks properly.
2011-04-18 18:12:01 -07:00
Roman
887f754014
Hidden NPE fixed, which appeared when someone pass null as arguments
...
(for such SQL as e.g. CREATE TABLE).
It is especially important when work with dome 3d party persistemce
libraries, like e.g. http://github.com/zefhemel/persistencejs which
passes these nulls.
2011-04-18 17:02:55 -07:00
macdonst
674015460f
Fixing file commands so that they run async
2011-04-13 03:13:10 +08:00
macdonst
40084293c3
Ticket 127: Android FileReader/FileWriter methods should return FileError object on error.
2011-04-07 07:17:41 +08:00
Fil Maj
ed4c57e791
Woops, finger slipped.
2011-04-06 11:01:36 -07:00
Fil Maj
bf164f4161
Fix for ticket 121: Checking for null return on native openDatabase call not enough as only allowed one DB per PhoneGap app. Have to proxy openDatabase and check at runtime.
2011-04-06 10:50:24 -07:00
Bryce Curtis
626119ae3b
Bug 126: NullPointerException in onDestroy()
2011-04-05 15:42:25 -05:00
Ron Reiter
307f9d1871
Add maxResolution flag
2011-04-04 02:57:10 +03:00
macdonst
e766188689
W3C Media Capture API
...
An implementation of the W3C Media Capture spec:
http://dev.w3.org/2009/dap/camera/Overview-API
Capture operations are supported for audio, video, and images. Each
capture operation launches the native audio recorder, video recorder,
or camera application, respectively.
2011-04-01 15:52:53 -04:00
macdonst
d74569ffa7
Read As Text missing load event call
...
FileReader.readAsText didn't call the onload callback on success.
2011-04-01 23:04:14 +08:00
macdonst
d424af03e4
Ticket 124: File Transfer multipart badly formed trips mod_security
...
A standard from has no trailing whitespace after a content-disposition line like so: "Content-Disposition: form-data; name="data";" however when using the extra params of Android FileTransfer a space is added on the end "Content-Disposition: form-data; name="data"; "
This fix simply removes the trailing whitespace.
2011-04-01 22:43:38 +08:00
Bryce Curtis
f6f80537c3
Merge branch 'master' of https://github.com/jos3000/phonegap-android into jos3000-master
2011-03-30 13:48:51 -05:00
Bryce Curtis
908485751b
Add check to only init and run JS code once - even if included multiple times.
2011-03-30 13:29:24 -05:00
macdonst
b850d225f4
Support old way of adding service in PhoneGap 0.9.5
...
PhoneGap 0.9.4 replaced PluginManager.addService() with navigator.app.addService(). This is problematic with the older plugin as they are not being maintained. I'm adding in a PluginManger JavaScript class which will implement the addService method and call navigator.app.addService() method under the hood. This way we won't break old code.
2011-03-30 21:04:03 +08:00
Jos Shepherd
010c774988
Added native prompt() dialog support
2011-03-25 16:31:27 +00:00
macdonst
969f0c87d7
PhoneGap Android Ticket 113:
...
FileTransfer returns FILE_NOT_FOUND_ERR on http 500 error
For some reason on Android if you do a getInputStream() on a HTTP Connection and the server returns a 500 error it will report a FileNotFoundException. Catching this exception and throwing an IOException so that we can report a more accurate error in JavaScript.
2011-03-24 23:31:12 +08:00
Fil Maj
b3e9794189
Fix for lighthouse ticket 115: certain versions of Android 2.2 return "null" for window.openDatabase. Hook in PhoneGap fallback for storage in this case.
2011-03-23 11:07:45 -07:00
Bryce Curtis
935295c9b8
Bug 110 - When you close an app on Android you see a JS error in logcat.
2011-03-18 17:27:36 -05:00
Anis Kadri
648df2624f
Merge github.com:phonegap/phonegap-android
2011-03-15 16:27:11 -07:00
Fil Maj
04de2052fd
As best a fix as can be made for issue 95: on HTC devices, if text input is in bottom half of page, it does not get scrolled up to top half of page when you tap it and virtual keyboard comes up.
2011-03-15 12:46:05 -07:00
Fil Maj
60eb60b4f5
Merge branch 'master' of github.com:phonegap/phonegap-android
2011-03-14 16:15:28 -07:00
Fil Maj
ec307fdda8
Null check in droidgap classic (build script).
2011-03-14 16:15:19 -07:00
Bryce Curtis
7344964c05
Add support for setting sms body using uri "sms:#?body=text".
2011-03-13 22:36:09 -05:00
Anis Kadri
1e4dc1bf5d
Merge github.com:phonegap/phonegap-android
...
Conflicts:
framework/assets/www/phonegap.js
framework/src/com/phonegap/DroidGap.java
2011-03-13 15:07:23 -07:00
macdonst
1fc56921aa
Ticket #90 : Move _createEvent from File to PhoneGap
...
Got rid of _createEvent from file.js as it is redundant code.
2011-03-10 04:26:11 +08:00
Bryce Curtis
21a34a8980
Ticket 106 - Simplify splash screen logic based upon idea from vadim.
2011-03-08 22:00:33 -06:00
Fil Maj
8d73b364f2
Issue 107: always send resume event to JS.
2011-03-07 16:50:10 -08:00
Fil Maj
fb2c25c6c6
Issue 107: Always send pause event to JS.
2011-03-07 16:48:23 -08:00
Mark Darbyshire
47ca081f36
Implement localStorage.key() and localStorage.length
...
This brings PhoneGap's implementation in line with the spec at http://dev.w3.org/html5/webstorage/
It makes the following demo work when you include PhoneGap: http://people.w3.org/mike/localstorage.html
I was hopeful it would make my app, which makes use of LawnChair, work, but I've had no such luck as of yet.
2011-03-07 15:55:14 -08:00
Fil Maj
939b70243d
Use icon with no width/height if specified. Set default icon to highest-resolution icon when possible.
2011-03-07 13:27:52 -08:00
Fil Maj
d44bb7a9d8
Fix so that if not all icons are specified, doesnt error the build out.
2011-03-07 13:27:52 -08:00
Fil Maj
dccc29daf2
Syntax fixes to my ruby :P
2011-03-07 13:27:52 -08:00
Fil Maj
b402efd1f7
First pass at extracting icon width/height info and assigning to proper resolution dirs (i.e. ldpi, mdpi, hdpi) during build.
2011-03-07 13:27:52 -08:00
macdonst
0c3a8fb9f7
File API: System and Directories
...
http://www.w3.org/TR/file-system-api/
User can retrieve PERSISTENT and TEMPORARY file systems, list their
contents, and manipulate files and directories within them.
Modify existing FileWriter implementation
-----------------------------------------
- Change the way user creates a FileWriter. User must either pass a
File object to the FileWriter constructor, or use the
FileEntry.createWriter() method.
- Drop support for the 'filePath' and 'append' parameters in the
FileWriter constructor. The file path is determined from either the
File object passed to the FileWriter constructor, or the FileEntry
object used to create the FileWriter. To append to a file, use the
FileWriter object's seek method:
// writer is a FileWriter object
// seek to length of file to append
writer.seek(writer.length);
Replace FileMgr JavaScript APIs not specified in any File API spec
------------------------------------------------------------------
- Remove navigator.fileMgr.createDirectory(dirName) function. To
create a directory, use the DirectoryEntry.getDirectory() method,
which is part of the File API: Directories and System spec. Set
the Flags.create to 'true':
// directory is a DirectoryEntry object
directory.getDirectory(path, {create:true}, successCB, failCB);
- Remove navigator.fileMgr.getRootPaths() function. To retrieve the
root file systems, use the window.requestFileSystem() function,
which is part of the File API: Directories and System spec.
- Remove navigator.fileMgr.getFileProperties(fileName) function. To
get the properties of a file, use the FileEntry.file() method, which
is part of the File API: Directories and System spec.
- Remove navigator.fileMgr.deleteFile(fileName) function. To delete a
file, use the Entry.remove() method, which is part of the File API:
Directories and System spec.
- Remove navigator.fileMgr.deleteDirectory(dirName) function. To
delete a directory, use the Entry.remove() (if it is empty), or
DirectoryEntry.removeRecursively() methods, which are part of the
File API: Directories and System spec.
Clean up existing FileManager native code. Move some functionality to
file utility class.
2011-03-05 04:26:31 +08:00
paulb777
64d4337d5f
Update index.html to Add networking to example
2011-02-28 23:49:14 +08:00
paulb777
a9e1751812
Add networking to example and fix contacts
2011-02-28 23:46:26 +08:00
Bryce Curtis
2bc7bd6768
Worked around JavaScript bridge exception for Android 2.3. Use "prompt" instead of calling objects directly. There were several objects called from JavaScript, including BrowserKey, so key events had to be reworked.
2011-02-27 20:07:24 -06:00
Fil Maj
1711fb07d7
Small patch to build script: ruby needs double quotes to interpolate variables into it properly.
2011-02-16 16:26:01 -08:00
paulb777
6f4673f590
JSLint clean JavaScript sources. No fatal errors remain. Options can turn off rest of warnings
2011-02-15 16:10:09 -08:00
Vadim Voituk
5e858f8bc3
Added CupcakeLocalStorage.clear() method (in according to http://dev.w3.org/html5/webstorage/#the-storage-interface )
2011-02-04 12:08:22 -08:00
Fil Maj
691b093ccd
Upped script version in assets.
2011-02-04 11:55:20 -08:00
Fil Maj
99002f9dce
Fix for build: version needs to be included in .jar and .js generated files.
2011-02-04 11:35:05 -08:00
Fil Maj
b07072c12b
Fix for ticket 86 (build fail if phonegap-android dir is located under a dir with "lib" in it). Also bug fix in build if config.xml didnt contain an <icon> element.
2011-02-04 11:20:22 -08:00
Bryce Curtis
36dd964ba4
Logging status from wrong object.
2011-02-03 21:11:06 -06:00
macdonst
f848527c28
Upping version to 0.9.4
2011-02-03 09:48:31 +08:00
Bryce Curtis
6aa055f46e
Change super.setProperty() to use super.set<type>Property() in example comments.
2011-02-02 14:37:09 -06:00
macdonst
7952668cf7
Throwing error on FileWriter.abort() if writer is not in the correct state. Lining up with iPhone and BlackBerry
2011-02-03 02:26:49 +08:00
macdonst
a0c761664d
Call onwriteend not onloadend in FileWriter.abort()
2011-02-03 02:08:41 +08:00
macdonst
9fd9cf55cf
Adding version number to phonegap jar/js files
2011-02-03 01:51:59 +08:00
macdonst
3c9089b9c7
Enable hardware volume control buttons in DroidGap applications
2011-02-02 23:33:01 +08:00
Bryce Curtis
f220489543
Disable picture listener once event has occurred.
2011-02-01 11:25:01 -06:00
Bryce Curtis
b65f9517db
Merge branch 'filmaj-splashscreenfix'
2011-02-01 11:00:02 -06:00
Bryce Curtis
1a0de5f626
Merge branch 'splashscreenfix' of https://github.com/filmaj/phonegap-android into filmaj-splashscreenfix
2011-02-01 10:46:38 -06:00
Fil Maj
3c0bef6cc1
Ticket 81: Tweak to label of local path to index.html in example app, now properly shows actual project-relative path.
2011-01-31 17:51:15 -08:00
Fil Maj
040194157f
Ticket 80: running "droidgap gen example" leads to recursive directory creation. README fix included.
2011-01-31 17:48:56 -08:00
macdonst
7ebf8130e4
Set type to url for returned photos
2011-01-29 04:19:06 +08:00
macdonst
64310dc85c
Fixing clone issue adding photos, removing relationships
2011-01-27 05:59:22 +08:00
macdonst
cd2e86af2f
Removing excess logging in contact.save()
2011-01-27 03:44:27 +08:00
macdonst
b353f3608d
Updating to latest W3C spec
2011-01-27 03:41:27 +08:00
macdonst
cda154209d
Fixing merge issue
2011-01-26 11:22:08 -05:00
Sveinung Kval Bakken
e3c72fa915
Will now use a "smarter" approach to finding an account for Contact.save, the order of account search will be:
...
1. Exchange provider
2. Google
3. Any valid email address account
2011-01-25 11:36:08 +01:00
Fil Maj
9354b429f3
Fix for ticket #55 : if phonegap source was on a path with "bin" in it would cause major fail.
2011-01-24 15:51:26 -08:00
Fil Maj
b1f0c037bd
Getting rid of black screen between native loading screen and actual PhoneGap app.
2011-01-24 12:43:28 -08:00
macdonst
726f1094d9
Fixing bug found by tiny hippos
2011-01-25 03:05:59 +08:00
macdonst
1b8ab156df
Adding http: and file: support when saving a contact photo.
2011-01-25 01:58:31 +08:00
macdonst
ee01b5058f
Adding support to set a Contact photo
2011-01-22 01:52:20 +08:00
macdonst
03ea8a0b5a
Enable the return of photos in a Contact object
2011-01-20 04:27:40 +08:00
macdonst
f090f9a70c
Merge branch 'master' of https://github.com/filmaj/phonegap-android into filmaj
2011-01-17 11:54:52 -05:00
Bryce Curtis
b7abc2c344
Skip over beginning / in request when comparing to token.
2011-01-16 15:15:24 -06:00
Fil Maj
53bdf2dd6b
Fix for specifying icon in config.xml; the @icon attribute would get overriden by defaults when going from create => classic::build.
2011-01-15 23:12:07 -08:00
Joe Bowser
b9e1b1d280
Adding Blank HTML page
2011-01-13 16:27:54 -08:00
Bryce Curtis
9051b157f8
Ticket 63: Android CallbackServer crashes on external attacks.
2011-01-13 14:45:15 -06:00
macdonst
f16d9b01b7
Fixing geo listner callback fail to send 3 args instead of 4.
2011-01-14 02:07:47 +08:00
macdonst
2a9bc2ddf8
Fixing issue where Android 2.1 and 2.2 don't return the same results on contact.find()
2011-01-14 02:02:21 +08:00
macdonst
6e39c46b07
Middle name for contact being updated incorrectly
2011-01-12 21:58:20 +08:00
macdonst
567ca94245
Adding debug mode so FileTransfer will accept self signed SSL certificates
2011-01-12 10:32:26 +08:00
macdonst
812a4b32b4
Adding file key properly
2011-01-07 23:17:05 +08:00
Bryce Curtis
023df10f31
Allow features/modules to initialize code before deviceready fires. CupcakeLocalStorage uses this capability to delay deviceready until local storage has been read and inited.
2011-01-06 22:50:13 -06:00
macdonst
8d513e2765
Remaining FileUploader to FileTransfer
2011-01-07 01:43:12 +08:00
Bryce Curtis
1eae6786c4
Better memory management when taking pictures.
2011-01-06 11:12:14 -06:00
macdonst
73f278963b
Adding File Upload functionality
2011-01-06 07:09:07 +08:00
macdonst
54eff557d9
Guard against null request in Android 1.5/1.6
2011-01-06 04:08:23 +08:00
Bryce Curtis
a7415bcfc9
Support all URIs by passing them to their default activity. This works for market:// and content://.
2011-01-04 13:22:25 -06:00
macdonst
b6bd9ad5b8
Support Market Uri
2011-01-05 03:03:38 +08:00
macdonst
f71d9deb5e
Fixing mimetypes for content:// Uri's.
2011-01-05 02:45:04 +08:00
macdonst
115b428a9d
Fixing issue where Date's aren't cloned
2010-12-30 00:53:06 +08:00
macdonst
92a1e4a2d9
Remove destroyed AudioPlayer from list of AudioPlayers
2010-12-23 02:51:39 +08:00
macdonst
2504db13d7
Adding release method to Media object
2010-12-23 02:44:52 +08:00
macdonst
43c72e684c
Setting content type properly in readAsDataURL
2010-12-23 00:26:38 +08:00
stevengill
46f0bf60c4
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-12-16 13:29:52 -08:00
macdonst
8bad4eb7eb
Fixing issue where Camera returned a content URI that File Reader could not read
2010-12-17 05:08:45 +08:00
paulb777
fbe96f891b
1. Split out js to main.js 2. Show a contact 3. Toggle accelerometer 4. More device info 5. Enable scrolling
2010-12-15 11:24:01 -08:00
Bryce Curtis
ab8950a5af
Re-enable multitasking in onResume Java callback so that onResume JS handlers are called - it was being re-enabled too soon.
2010-12-09 14:13:23 -06:00
Bryce Curtis
26adfb6346
If multitasking is turned on (keepRunning=true), then temporarily disable it when starting a new activity that returns a result - such as camera.
2010-12-06 16:48:06 -06:00
Bryce Curtis
43b6b6d34e
Update version number to 0.9.3 in preparation for next release.
2010-12-03 18:15:00 -06:00
Bryce Curtis
04ddc68dfd
Fix bug with saving name in new contact.
2010-12-03 14:14:37 -06:00
Bryce Curtis
42cd10cf56
Need license header since it is removed by minification.
2010-12-01 16:13:22 -06:00
Bryce Curtis
5f3bc33f8e
Update comments.
2010-12-01 11:21:49 -06:00
Bryce Curtis
2131070ee9
Add JavaScript minification using YUICompressor.
2010-11-30 19:00:30 -06:00
Bryce Curtis
b2a82975e5
Merge branch 'jos3000-master'
2010-11-29 12:30:49 -06:00
Bryce Curtis
ddeba91faf
Merge branch 'master' of https://github.com/jos3000/phonegap-android into jos3000-master
2010-11-29 12:27:00 -06:00
macdonst
6e572f05e4
Put trailing / into getRootPaths() to remain consistent with BBW
2010-11-26 00:45:02 +08:00
macdonst
50b435c4d1
Following File API spec.
2010-11-25 03:11:43 +08:00
Bryce Curtis
af5c5dc021
Update splash screen example and list of properties that can be set in commented code.
2010-11-23 09:53:43 -06:00
Bryce Curtis
87fd9665fe
Merge branch 'localStorage' of https://github.com/ascorbic/phonegap-android into ascorbic-localStorage
2010-11-21 17:58:49 -06:00
Bryce Curtis
5e9ca84b40
Expose certain methods from DroidGap to JavaScript so that a PhoneGap web app can better control program configuration and flow.
2010-11-21 17:33:13 -06:00
Bryce Curtis
090ad56d0b
Don't need special method to load a splash screen. Instead, the regular loadUrl() and clearHistory() can be used.
2010-11-21 16:47:35 -06:00
Bryce Curtis
e3ebfea064
Improve handling of timeout error when loading URL, and enable WebViewClient to be overridden by app, so developer can intercept webview events.
2010-11-21 16:42:00 -06:00
Bryce Curtis
44761f87d2
Remove comment for unused parameter.
2010-11-21 16:31:49 -06:00
Bryce Curtis
04e3ceac96
Define window.plugins object so plugins can check to see if they have already been created.
2010-11-21 16:30:46 -06:00
Bryce Curtis
afc7e605ff
Fix bug when not doing cast - temp isn't defined.
2010-11-20 21:23:15 -06:00
macdonst
1c5aa6cd00
Adding a cast for contacts.find()
2010-11-20 01:42:52 +08:00
macdonst
c1a87ebaaa
Adding and optional call to cast Plugin Result
2010-11-20 01:42:43 +08:00
macdonst
46babe7a48
Calling correct events from FileWriter.abort()
2010-11-17 15:30:08 -05:00
Bryce Curtis
0dc64d2aa7
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-11-16 18:15:15 -06:00
Bryce Curtis
1d9e522bd9
Fix quality issue with base64 encoded images. Quality parameter wasn't being set.
2010-11-16 18:14:24 -06:00
macdonst
5dcac6d7fe
Fixing issue in File Reader/Writer when newlines in file
2010-11-16 13:30:18 -05:00
macdonst
07418a3606
Small fix to File API
2010-11-17 00:06:49 +08:00
Bryce Curtis
0e08af98ca
Better way to handle splash screen when back button pressed.
2010-11-15 16:32:55 -06:00
Bryce Curtis
b8b1ad8421
Add property that lets a PhoneGap app continue to run when another Android app or activity is started.
2010-11-14 17:33:06 -06:00
Bryce Curtis
4fa1f40b44
Add load URL capability, and enable an HTML file to be used as a splash screen.
2010-11-12 22:38:27 -06:00
macdonst
5f55ebf1d9
Adding Contact.save() for Android 1.X and Android 2.X
2010-11-13 05:34:44 +08:00
Bryce Curtis
9798de7efa
Remove unused and unneeded getPort() method.
2010-11-12 12:53:34 -06:00
Bryce Curtis
102745875c
Allow user to set the loading dialog message. Change default from show to not shown.
2010-11-11 22:24:20 -06:00
Bryce Curtis
dce0d93df8
Replace deprecated debug.log with console.log.
2010-11-11 22:03:12 -06:00
Bryce Curtis
1428ac5ed5
Add error checking for PhoneGap.addPlugin().
2010-11-11 21:58:07 -06:00
Bryce Curtis
4f1bc1401f
Add delay so splash screen can be shown for a specific amount of time.
2010-11-11 21:56:56 -06:00
Bryce Curtis
28ff6e1150
Merged code for bryfox: Re-add support for search & menu key triggers.
...
See original commit: 799515fa7b
2010-11-11 16:20:32 -06:00
Bryce Curtis
5ffe5fa3c5
Merged code for imhotep: Cleaner way for handling splashscreens.
...
See original commit: 1761cbb3dc
2010-11-11 15:59:35 -06:00
Bryce Curtis
49341356d7
Add comments to onKeyDown() method.
2010-11-11 14:08:55 -06:00
Bryce Curtis
e8b85f6cf7
Fix formatting and rearrange method order.
2010-11-11 14:00:56 -06:00
Bryce Curtis
4b2398b487
Add properties to DroidGap that can be set when the intent/activity is called. This enables the developer to show app loading dialog, splashscreen, or set other properties.
2010-11-11 11:34:12 -06:00
Bryce Curtis
10f3313ed5
Use polling if PhoneGap app is loaded from server, since XHR doesn't work to localhost due to cross-domain security policy.
2010-11-10 14:19:17 -06:00
Matt Kane
46664c6494
Remove dependency on JSON support
2010-11-10 08:44:33 +00:00
Matt Kane
8ce7e61ed7
Adds localStorage support to older versions
2010-11-10 08:34:59 +00:00
Matt Kane
912458c679
Fix order of args to match w3c spec.
2010-11-09 22:58:13 +08:00
macdonst
e117b95057
Fixing issue with addEventListener and Sencha
2010-11-09 21:48:48 +08:00
Jos Shepherd
3a0101261d
Move data transfer for storage to completeQuery for speed up
2010-11-06 20:01:22 +00:00
Bryce Curtis
48d3bc09f3
Add method for dynamic loading of a JavaScript file.
2010-11-05 16:00:58 -05:00
Bryce Curtis
0b3e27b3fa
Load url into DroidGap if it was passed in to intent.
2010-11-05 14:50:48 -05:00
Bryce Curtis
b66535a17d
Introduce PhonegapActivity class to separate plugin development from base Phonegap.
2010-11-06 03:10:28 +08:00
Jos Shepherd
fdc78e1b08
Fix for troublesome values being returned from DroidDB stores. Stick to one level of JSON serialization.
2010-11-05 17:03:05 +00:00
Bryce Curtis
36064c564e
Reduce timeout from 30 sec to 10 sec for CallbackServer. Some devices have shorter timeouts than others for XHR.
2010-11-04 13:07:15 -05:00
Bryce Curtis
7102810283
Fix problem with CallbackServer for certain HTC phones.
2010-11-03 22:45:14 -05:00
Bryce Curtis
ab4d4e22da
Include the device's name in Device.name per API docs.
2010-11-03 10:23:12 -05:00
Bryce Curtis
80c15de606
Return error conditions from CallbackServer instead of just closing connection.
2010-11-01 13:59:08 -05:00
Matt Kane
be5cac6d0b
This is being called from java code, but callback didn't exist
2010-11-01 05:58:24 +08:00
Matt Kane
2bb67ee4b0
Change use "geo:" instead of WebView.SCHEME_GEO
...
The constant is "geo:0,0?q=", which means it doesn't match urls that specify the coordinates. The gmap app can handle these though, so we can pass any geo: url to it.
2010-11-01 05:50:55 +08:00
Bryce Curtis
f7254044ee
Require security token when calling CallbackServer via XHR.
2010-10-29 22:07:23 +08:00
macdonst
2e5d6f5b74
Adding truncate to FileWriter
2010-10-28 22:17:20 -04:00
macdonst
b7024ad1f5
Small FileWriter fix
2010-10-29 08:46:37 +08:00
Bryce Curtis
577284b960
Remove unneeded debug log statements.
2010-10-28 16:28:24 -05:00
Joe Bowser
35b3808701
Fixing typo
2010-10-27 15:00:35 -07:00
Joe Bowser
45c9a88fd7
Merge branch 'master' of git@github.com:phonegap/phonegap-android
2010-10-27 14:53:32 -07:00
Bryce Curtis
831670e4ae
Modify camera to use NO_RESULT, thus eliminating extra JS callback methods.
2010-10-27 21:33:50 +08:00
Bryce Curtis
37a9307681
Enable JS callbacks to be kept around for multiple callbacks from Java.
2010-10-27 21:33:49 +08:00
Joe Bowser
34f6e878d5
Merge branch 'master' of git@github.com:phonegap/phonegap-android
2010-10-26 16:23:37 -07:00
Bryce Curtis
bc1e039ea1
Use polling instead of XHR for callbacks from Java to JavaScript when device has a proxy set.
2010-10-26 15:09:54 -05:00
Joe Bowser
8c624c7f22
Adding a console.log statement to debug errors in callback
2010-10-25 15:01:17 -07:00
Bryce Curtis
f63b8140af
Add quotes when returning status message.
2010-10-25 14:59:23 -05:00
Bryce Curtis
153d42f693
Alert and notification dialogs should be run on UI thread.
2010-10-25 14:35:02 -05:00
Bryce Curtis
5647e54399
Add PluginResult status values to handle RESULT_TO_BE_SENT, NEXT_RESULT, NO_MORE_RESULTS .
2010-10-25 14:33:48 -05:00
Bryce Curtis
8663ed412f
Made notification.alert and notification.confirm async.
...
notification.confirm matches iOS and BB widget implementation (invoke callback with result).
2010-10-25 11:20:41 -05:00
Anis Kadri
1761cbb3dc
cleaner way for handling splashscreens
2010-10-22 12:07:02 -07:00
Bryce Curtis
072613be99
Rename PhoneGap.execAsync() to PhoneGap.exec().
2010-10-22 13:08:54 -05:00
Bryce Curtis
6b7fc8119f
Rename PhoneGap.execAsync() to PhoneGap.exec() and change all JS files that use it.
2010-10-20 23:53:33 -05:00
Bryce Curtis
29549b835a
Add error checking around user callbacks.
2010-10-18 16:04:39 -05:00
Bryce Curtis
60fc61065e
Fix variable change error.
2010-10-18 16:02:42 -05:00
Bryce Curtis
de23753204
Update license and copyright notices in each source file. PhoneGap is licensed under modified BSD and MIT (2008).
2010-10-18 15:31:16 -05:00
macdonst
9cd4d4c603
Adding comments to Contact code
2010-10-19 04:06:49 +08:00
macdonst
bc086cb93d
Setting ContactFindOptions to correct defaults
2010-10-19 00:30:00 +08:00
brianleroux
f15bdf9445
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-10-14 17:04:19 -07:00
brianleroux
9358e23726
Merge branch 'commandline' of github.com:davejohnson/phonegap-android
2010-10-14 17:02:45 -07:00
Bryce Curtis
6d605c1cbf
Set prepareListener before calling prepare.
2010-10-14 09:58:37 -05:00
Bryce Curtis
be16eebf55
Remove logging from storage.js.
2010-10-13 13:47:43 -05:00
Bryce Curtis
1f3bd9f51c
Add support for multiple executeSql statements in transaction that returns results.
...
If a transaction had more than one "SELECT * FROM TABLE" statement, then only one of the executeSql callbacks would be called. The others would not be called, even though they were successful. This is because a transaction object had only one result set. Changed code so that each executeSql has a result set and unique "query id" so that the query results can be sent back to the correct statement's callback.
2010-10-13 13:43:52 -05:00
Jos Shepherd
5bdc81e84d
Fix to new Android 1.6 storage code - callback wasn't being called for empty result sets.
2010-10-13 22:12:36 +08:00
Dave Johnson
08963b5e5f
Add IPlugin to isPhoneGapPlugin check
2010-10-12 23:36:08 +01:00
Dave Johnson
522a7225db
Change PluginManager.isPhoneGapPlugin() to be much shorter like on the BlackBerry
2010-10-12 23:18:11 +01:00
Bryce Curtis
032db387f8
Fix database for Android 1.x devices. It now behaves like HTML5 database API.
2010-10-12 15:53:57 -05:00
davejohnson
5164464d28
Change droidgap create to not use 'grep' and have better error messages
2010-10-13 01:30:00 +08:00
davejohnson
a66ef4641f
Change droidgap create to not use 'grep' and have better error messages
2010-10-11 05:30:54 -07:00
macdonst
3fd372f9d1
Remove logs
2010-10-09 02:58:14 +08:00
macdonst
b125f4e74b
Fixing if/else condition
2010-10-09 02:58:04 +08:00
macdonst
3a9c106aba
Small changes for older Android SDK
2010-10-09 02:43:27 +08:00
brianleroux
a31ce5ef2a
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-10-08 11:40:09 -07:00
brianleroux
bf3b38036b
tiny fix to droidgap gen for windows
2010-10-08 11:39:56 -07:00
macdonst
34859ec479
Reduced everything to single database query
2010-10-08 23:44:07 +08:00
macdonst
4a6105de6b
Do one table query per contact
2010-10-08 23:43:23 +08:00
Bryce Curtis
50ab0e0834
Add confirm, start/stopActivity, start/stopProgress to notification service. Add "application loading" spinner that user can optionally show when app is starting.
2010-10-08 09:18:10 -05:00
macdonst
72b2ec804c
Removing unused functions
2010-10-07 06:17:24 +08:00
brianleroux
086e6ea56b
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-10-06 11:51:59 -07:00
brianleroux
122395e0d0
small tweaks to the build script
2010-10-06 11:51:42 -07:00
Bryce Curtis
98206852de
Update alert() to implement navigator.notification.alert API. This update is from janmonschke (Jan Monschke).
2010-10-06 13:31:30 -05:00
Bryce Curtis
dc960b9835
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-10-06 13:01:13 -05:00
Bryce Curtis
9adb85a64b
Add callbackId to Plugin.execute() so result can be sent back when overlapping calls to same plugin occur.
2010-10-06 12:56:34 -05:00
Bryce Curtis
23b02e7267
Change initialization of Storage for 1.x devices to use service call.
2010-10-06 12:56:34 -05:00
Bryce Curtis
e3cef16629
Remove getClassForService() and make addPlugin() private.
2010-10-06 12:56:34 -05:00
Dave Johnson
5a2398dbea
Add call to setCallbackdId in addPlugin
2010-10-06 12:56:34 -05:00
Dave Johnson
f1421bc724
Add callbackId and JS callback sugar to plugin class and interface
2010-10-06 12:56:34 -05:00
Dave Johnson
7d6ffc676d
Update PluginManager to not call Class.forName twice
2010-10-06 12:56:34 -05:00
Bryce Curtis
385be26046
Check plugin against new Plugin and IPlugin to determine if valid plugin class.
2010-10-06 12:56:34 -05:00
Bryce Curtis
68146329b9
Add IPlugin interface and change Plugin to be abstract class. Plugins can either implement IPlugin or extend Plugin.
2010-10-06 12:56:34 -05:00
brianleroux
1231268a6b
updated readme to reflect change to droidgap
2010-10-06 10:56:23 -07:00
brianleroux
cbff3812e8
made gen create a fullout android proj
2010-10-06 10:54:18 -07:00
brianleroux
f8ae11993f
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-10-06 10:53:25 -07:00
macdonst
3138178fea
Speeding up contacts.find
2010-10-07 00:45:07 +08:00
macdonst
f20e5cf943
Shave .2 sec off each contact returned in a query
2010-10-06 02:24:31 +08:00
macdonst
a1b35b7636
Remove logging
2010-10-06 00:24:33 +08:00
macdonst
8eaaa04746
Small fix to speed up contact retrieval
2010-10-06 00:19:58 +08:00
macdonst
2bbf62c489
Fixing Contacts.find to use PluginResult
2010-10-04 09:50:48 +08:00
macdonst
c80397ad68
Fix duplicate method name
2010-10-02 05:11:06 +08:00
macdonst
c91ea37438
Adding Contacts.create method
2010-10-02 05:10:42 +08:00
macdonst
9671083bed
Removing logging messages
2010-10-01 11:29:24 +08:00
macdonst
6071b9c75a
Adding Contact.remove method
2010-10-01 11:22:20 +08:00
Justin Tyberg
668bc9e0ca
Corrected check for existence of accelerometer timer to allow clearWatch to clearInterval correctly.
2010-10-01 10:34:39 +08:00
macdonst
297ddb99fe
Adding clone functionality to Contact object
2010-10-01 00:01:30 +08:00
brianleroux
cbd5686e7d
merge of latest phonegap/android bs
2010-09-30 13:39:10 +02:00
Bryce Curtis
a772acbd89
Update lastAccessTime when calling getAcceleration() so we don't timeout.
2010-09-29 20:52:39 -05:00
macdonst
c2240966ef
Removing extra log calls
2010-09-30 05:46:32 +08:00
macdonst
36984f4697
Merge remote branch 'macdonst-contactSpec/contactSpec'
2010-09-29 17:13:58 -04:00
macdonst
ac92498594
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2010-09-29 16:31:34 -04:00
macdonst
7bfe94ffc7
Removing commented out code
2010-09-29 15:35:57 -04:00
Bryce Curtis
f85f4e6b69
Update notification service to implement plugin class.
2010-09-29 11:10:08 -05:00
macdonst
c13c0c37e3
Only query what is required as passed by filter
2010-09-28 14:19:40 -04:00
macdonst
2098436a2c
Fixing query so that it uses wildcards
2010-09-24 16:15:16 -04:00
macdonst
a427b8cead
Merge branch 'master' into contactSpec
2010-09-24 13:27:53 -04:00
macdonst
bcf920669b
Merge branch 'master' of git://github.com/phonegap/phonegap-android
...
Conflicts:
framework/src/com/phonegap/ContactManager.java
2010-09-24 13:22:46 -04:00
macdonst
a9f057c278
Cleaning up some accessor code
2010-09-24 11:43:10 -04:00
macdonst
4e4207f294
Merge branch 'master' of git://github.com/phonegap/phonegap-android into contactSpec
2010-09-24 11:42:08 -04:00
brianleroux
c86f7d053c
Merge branch 'master' of github.com:phonegap/phonegap-android into test
2010-09-24 14:12:24 +02:00
Bryce Curtis
7f7cc1db2a
Add geolocation options as defined by W3C spec.
2010-09-23 14:34:56 -05:00
Bryce Curtis
edfa41c9f9
Update geolocation to follow W3C spec, add comments, add error checking.
2010-09-22 14:47:52 -05:00
macdonst
1768b507f8
Cleaning up logs from ContactAccessors
2010-09-22 11:37:12 -04:00
brianleroux
36949f4af1
tiny fix for config file containing spaces in name
2010-09-22 16:13:25 +02:00
macdonst
328bc106e5
Able to query contact DB on Android 1.6
2010-09-21 22:08:45 -04:00
Bryce Curtis
063e189bb7
Change isReachable() to return NetworkStatus constant to reachableCallback(reachability) as specified in the API documentation.
2010-09-20 22:25:57 -05:00
Bryce Curtis
1a9173d2c3
Added comments.
2010-09-20 21:09:35 -05:00
macdonst
fdca4c5ecb
First pass as pre 2.0 Android contacts
2010-09-20 21:38:29 -04:00
Bryce Curtis
b079a24373
Need to listen for XHR callbacks before constructors are run, since constructors could call native code that returns data in callback.
2010-09-20 15:48:37 -05:00
Bryce Curtis
ace84227cc
Fix problem with deviceready being called before device properties are guaranteed to be set.
2010-09-20 15:39:54 -05:00
macdonst
f68b75c1cf
Small refactor on birthday and anniversary
2010-09-20 15:51:12 -04:00
macdonst
f272748c5b
Adding queries for IM, Note, Nickname, Website, Relationship, Birthday and Anniversary
2010-09-20 14:52:02 -04:00
Bryce Curtis
a59cad68e2
Device returns string, but for some reason emulator returns object - so convert to string.
2010-09-17 16:53:52 -05:00
Bryce Curtis
eff7c92dae
FileWriter should use its own states object.
2010-09-17 16:17:06 -05:00
macdonst
ca4d7f7fd2
Adding queries for addresses and organization
2010-09-17 17:15:30 -04:00
Bryce Curtis
0ed522481f
Read and write operations are async.
2010-09-17 16:05:05 -05:00
Bryce Curtis
2d4a321cc1
Update files.js to be closer to iPhone impl and W3C File API working draft at http://www.w3.org/TR/FileAPI/ .
2010-09-17 15:43:20 -05:00
Bryce Curtis
00dc18a488
Convert FileUtils to plugin architecture.
2010-09-17 15:41:48 -05:00
Bryce Curtis
b95ad44c18
Add general ERROR to plugin result status.
2010-09-17 15:38:18 -05:00
Bryce Curtis
9d3306ccc5
Add comments to directory manager source file.
2010-09-17 15:37:34 -05:00
macdonst
c2bcc29cfb
Merge branch 'master' of git://github.com/phonegap/phonegap-android into contactSpec
2010-09-17 10:24:30 -04:00
macdonst
0a2d7bf536
reducing code
2010-09-17 10:24:22 -04:00
Bryce Curtis
0895083f1f
Use same option name as iPhone.
2010-09-16 12:47:13 -05:00
macdonst
8de6d9ce15
Merge branch 'master' of git://github.com/phonegap/phonegap-android into contactSpec
2010-09-16 13:40:17 -04:00
macdonst
c483ebd1d7
Fixing merge conflict
2010-09-16 13:39:59 -04:00
Bryce Curtis
92d2b5812c
Change camera to be more consistent with iPhone and BB widgets. Add support to choose image from library instead of only camera.
2010-09-16 11:31:42 -05:00
Bryce Curtis
9c2e4cfd9c
Check to make sure result was returned to eliminate parse warning messages.
2010-09-16 11:28:52 -05:00
macdonst
8da131cc45
Changed search function to take filter and option parameters
2010-09-16 11:35:49 -04:00
Bryce Curtis
5cd25316fa
Change JS to call navigator.contacts instead of navigator.ContactManager, which no longer exists.
2010-09-15 14:38:57 -05:00
Bryce Curtis
705b8f6874
Change Device JS object to include only platform, uuid, version, and phonegap properties as defined in API, and modify Device Java class to implement plugin interface.
2010-09-15 14:27:46 -05:00
Bryce Curtis
c050e00b8f
Use timeout to break out of possible infinite loop waiting for sensor to start.
2010-09-15 14:17:40 -05:00
Bryce Curtis
03f6267c82
Add JSON stringify equivalent not implemented in older Android (1.6) devices. This is needed for args passed to PhoneGap.exec().
2010-09-15 14:06:05 -05:00
macdonst
d955502ca2
Fixing whitespace
2010-09-14 14:51:31 -04:00
macdonst
f606012c87
Merge branches 'master' and 'contactSpec'
2010-09-14 14:43:46 -04:00
macdonst
3f24c63fc5
Changing navigator.contacts to navigator.service.contacts
2010-09-14 14:21:20 -04:00
macdonst
b78896e5f0
Modify ContactFindOptions to pass Mobile Spec tests
2010-09-14 14:21:20 -04:00
macdonst
0efe871efe
Adding new data model to contact.js to conform to W3C spec
2010-09-14 14:21:20 -04:00
macdonst
633100a3ce
Merging Fil's contact changes with Bryce's Plugins
2010-09-14 14:21:19 -04:00
Bryce Curtis
1c0de5ad8d
Change hasReturnValue to isSynch to be more accurate about purpose of method.
2010-09-13 11:01:44 -05:00
Bryce Curtis
e4d1087b72
Clean up unused variables.
2010-09-10 18:41:39 -05:00
Bryce Curtis
040a3d7d43
Modify JS code to use service name rather than class name.
2010-09-10 15:13:53 -05:00
Bryce Curtis
fb281ddc9f
JS execAsync to handle changes to plugins.
2010-09-10 15:12:55 -05:00
Bryce Curtis
afd278cf80
Modify contacts to use async plugin. Contacts doesn't work on Android, but needed to update JS side to work with plugin.
2010-09-10 14:54:31 -05:00
Bryce Curtis
53fca124ab
Modify camera capture to use async plugin. Use option instead of method to specify capture type (base64 or file).
2010-09-10 14:45:32 -05:00
Bryce Curtis
d72c77d6f3
Modify network queries to use async plugin.
2010-09-10 14:20:34 -05:00
Bryce Curtis
0a7762743e
Optimize accelerometer to use new PluginManager.
2010-09-10 13:44:45 -05:00
Bryce Curtis
863807a7a5
Add position callback and do some optimization of audio player.
2010-09-10 11:38:23 -05:00
Bryce Curtis
5c20ba57e9
Optimize compass to use new PluginManager.
2010-09-10 11:35:10 -05:00
Bryce Curtis
a13b8fc124
Implement ReturnValue() for each plugin.
2010-09-10 11:34:06 -05:00
Bryce Curtis
2b015164f4
Add hasReturnValue() so that PluginManager can make decision to run an action sync or async.
2010-09-10 11:32:18 -05:00
Bryce Curtis
a21080fb76
Add services supported and their class names.
2010-09-10 11:31:22 -05:00
Bryce Curtis
cda0319be3
Refer to services instead of class names, which don't translate across devices.
2010-09-10 11:30:32 -05:00
Bryce Curtis
7108076260
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-09-09 13:00:40 -05:00
Bryce Curtis
7f3cf4a884
Remove unused module classes.
2010-09-09 11:04:29 -05:00
Bryce Curtis
2d2adf29fd
Cleanup plugin code.
2010-09-09 11:04:04 -05:00
Bryce Curtis
b02f376826
Catch exceptions in async callbacks.
2010-09-09 11:03:46 -05:00
Bryce Curtis
1fa41df3f1
Cleanup code and add comments.
2010-09-09 11:01:56 -05:00
Bryce Curtis
77801de1ae
Cleanup accelerometer code.
2010-09-09 11:00:45 -05:00
Bryce Curtis
3c9bae3402
Optimize accelerometer for plugin manager.
2010-09-08 17:09:22 -05:00
brianleroux
d208f7bea7
update build target detection to actually fucking detect
2010-09-07 19:03:53 -07:00
Bryce Curtis
4f360c2680
Change commands to plugins.
2010-09-07 13:59:54 -05:00
Bryce Curtis
9e931cc3f6
Change to use Commands and CommandManager.
2010-09-07 10:39:55 -05:00
Bryce Curtis
5c24abcafd
Alert dialog only has OK button. Add confirm dialog with OK and CANCEL.
2010-09-07 10:33:08 -05:00
brianleroux
6d403c5864
updated readme
2010-09-05 15:13:32 -07:00
brianleroux
0417a9873b
added classic mode for droidgap and implmented test command first pass
2010-09-05 14:32:16 -07:00
brianleroux
22e9530c66
seperating out config
2010-09-05 11:38:48 -07:00
Bryce Curtis
40997b4cb8
Update classes to use module, and make constructors consistent.
2010-09-03 17:24:55 -05:00
Bryce Curtis
5d83a44ec3
Set default camera image to base64. Add comments.
2010-09-03 16:00:21 -05:00
Bryce Curtis
d39781f3fb
Start CameraLauncher using module.
2010-09-03 14:27:06 -05:00
Bryce Curtis
75636f7f00
Add modules that can be started without changing DroidGap.java.
2010-09-03 14:14:28 -05:00
Bryce Curtis
f77e51290b
Add automatic handling of onActivityResult, so modules that start activities with result callback can do so without modifying DroidGap.java.
2010-09-03 14:01:24 -05:00
brianleroux
8163416e27
cleanup for merge
2010-09-02 16:58:24 -07:00
brianleroux
9185848cbc
fixing dasherish
2010-09-02 16:44:56 -07:00
brianleroux
d2e19d8818
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-09-02 16:42:12 -07:00
brianleroux
5c481ebe40
changed to loadInWebView
2010-09-02 12:54:35 -07:00
Bryce Curtis
1febba48ff
Moved camera code from DroidGap into CameraLauncher. Added comments and error messages.
2010-09-02 11:27:48 -05:00
brianleroux
a6faa68a5c
undefined is not falsy in java land apparently
2010-09-01 11:55:18 -07:00
brianleroux
48ace80183
added a backdoor ;O
2010-09-01 11:49:56 -07:00
brianleroux
b06d02028a
updated create script to remove dashes
2010-09-01 11:26:57 -07:00
brianleroux
c53427d7ec
Merge branch 'master' of github.com:phonegap/phonegap-android
2010-09-01 11:13:10 -07:00
brianleroux
f818f9bda9
merged dave
2010-08-31 16:50:39 -07:00
brianleroux
83070fc4ea
updated pkg to create as per daves suggestion
2010-08-31 15:40:19 -07:00
brianleroux
6cd1d8113e
updates to output and rmoved uniq package name
2010-08-31 15:36:09 -07:00
brianleroux
5a90792e0d
Merge branch 'master', remote branch 'dave/command_line'
2010-08-31 15:19:12 -07:00
Bryce Curtis
90b708fe83
Update audio playback and recording.
2010-08-31 15:39:37 -05:00
Dave Johnson
f48a19554c
readme
2010-08-31 13:27:43 -07:00
Dave Johnson
cf7a4f0fb6
Add more windows compatibility. run does not actually put the app on the simulator though
2010-08-31 13:21:23 -07:00
Dave Johnson
86a7a0d9e3
Add windows build scripts
2010-08-31 13:08:07 -07:00
brianleroux
a5323d77f5
updated readme
2010-08-30 16:02:47 -07:00
brianleroux
190cec7730
removed frameowrk bs
2010-08-30 15:58:47 -07:00
brianleroux
be7f0a2496
whoops
2010-08-30 15:58:11 -07:00
brianleroux
06779773dd
reworking in new droidgap lite
2010-08-30 15:57:07 -07:00
brianleroux
2384714138
unused example is unused
2010-08-30 12:02:21 -07:00
macdonst
91f1f475e9
fixing error in if statement
2010-08-30 22:56:24 +08:00
macdonst
b1af7d8739
Adding altituteAccuracy into Coordinates object
2010-08-30 22:56:24 +08:00
Bryce Curtis
86d6053d2d
Don't need to manage resume/pause state - the OS does it.
2010-08-27 09:31:57 -05:00
Bryce Curtis
c6280edbed
Set type of channel.
2010-08-27 09:28:49 -05:00
Dave Johnson
4fd8a4dad8
Remove channel.js. Remove double call to nativeReady in DroidGap. Niceify CommandResult.java
2010-08-26 12:15:34 -07:00
Dave Johnson
fb2b8345d1
One last fix for a merge problem
2010-08-26 12:10:05 -07:00
Bryce Curtis
c9a579af8c
Change resume and pause to use same event mechanism used by deviceready.
2010-08-26 10:39:02 -05:00
filmaj
92b838e07a
Was there a reason we had some code duplication?
2010-08-25 22:44:56 -07:00
filmaj
f0cd97de72
Don`t hardcode the android sdk path in the build script before you push (im looking at you Dave)
2010-08-25 22:38:37 -07:00
filmaj
764c9191b7
Merged in latest.
2010-08-25 22:32:31 -07:00
Dave Johnson
fbcaf15353
Fix for merge problem. Tests passing again
2010-08-25 20:37:25 -07:00
Dave Johnson
4eec4c0801
updategap
2010-08-25 16:26:26 -07:00
Dave Johnson
b01668d262
Fix for a merge problem
2010-08-25 15:12:23 -07:00
Dave Johnson
ae800455b1
no more silly json strings in there
2010-08-24 18:59:05 -07:00
Dave Johnson
56f0e8e087
undo the splash screen for now
2010-08-24 18:59:05 -07:00
Dave Johnson
8ca1804de9
the plugins were executing on the UI thread. now on background thread. calls to loadUrl are now automatically on the ui thread
2010-08-24 18:58:41 -07:00
Dave Johnson
0c52ed44a0
changed FileUtils to public for testing purposes. added updategap that can updated a project with the latest phonegap jar and js
2010-08-24 18:58:40 -07:00
Dave Johnson
bb5a628a28
no longer copy preview.xml - preview.xml is never used for anything so removed from it
2010-08-24 18:58:16 -07:00
Dave Johnson
49de553ee8
refactored the Command stuff a bit more, added a spashscreen
2010-08-24 18:58:16 -07:00
Dave Johnson
1af469c8b1
check if file exists or not
2010-08-24 18:57:21 -07:00
Dave Johnson
2b2b4f5dd4
javascript and native side of a URL caching plugin + android plugin framework is complete
2010-08-24 18:57:21 -07:00
Dave Johnson
742910f369
added onNativeReady and onDOMContentLoaded events
2010-08-24 18:56:09 -07:00
Dave Johnson
3365dba870
fixed up things so that deviceready now uses DOMContentLoaded and if DCL fires before something is attached to deviceready the function will be called immediately
2010-08-24 18:51:58 -07:00
filmaj
ac0ba41ccf
Merged in bryce`s latest.
2010-08-24 15:01:58 -07:00
filmaj
745aa7201c
For some reason have to check typeof?
2010-08-24 14:59:02 -07:00
Bryce Curtis
ea8dc73525
Don't need to fire native ready event during constructor. It gets fired when page has been loaded.
2010-08-24 15:03:38 -05:00
filmaj
8683667041
Semi-colon + new-line addition otherwise built phonegap.js is bad :(
2010-08-24 11:34:32 -07:00
filmaj
24869b637d
Merge branch 'master' of http://github.com/thedeftone/phonegap-android
2010-08-24 11:26:00 -07:00
Bryce Curtis
13679fe00d
Make sure JavaScript PhoneGap code is initialized and deviceready is fired for a new HTML page loaded from link in initial index.html.
2010-08-24 13:19:22 -05:00
Dave Johnson
9f1730ae47
Add back JSCallback to deviceready event
2010-08-23 17:14:08 -07:00
Dave Johnson
5e46fad0e9
utils for checking lint
2010-08-23 17:00:03 -07:00
Dave Johnson
e0d1414c4a
tweaks to PhoneGap.Channel
2010-08-23 17:00:03 -07:00
Dave Johnson
8e5de2cb7b
added onNativeReady and onDOMContentLoaded events
2010-08-23 17:00:02 -07:00
Dave Johnson
ca01781766
undoing a test change to droidgap
2010-08-23 16:58:21 -07:00
Dave Johnson
f7a4a0aef8
fixed up things so that deviceready now uses DOMContentLoaded and if DCL fires before something is attached to deviceready the function will be called immediately
2010-08-23 16:58:21 -07:00
Jan Monschke
27ff3068f5
changed back button behavior to use the native way to test if a webview can go back
2010-08-23 15:35:56 +02:00
Bryce Curtis
27c4de6aa0
Change compass listener and optimize accelerometer listener.
2010-08-20 10:59:45 -05:00
Bryce Curtis
e5bbbbe35c
Add onpause & onresume events to javascript.
2010-08-19 15:41:06 -05:00
Bryce Curtis
b4d3a10773
Change loadUrl(javascript...) to use new callback mechanism.
2010-08-19 14:37:49 -05:00
Bryce Curtis
1850d2c04e
Add callback server class.
2010-08-19 13:35:31 -05:00
Bryce Curtis
5bdad8c0ca
Add XHR-based callbacks from Java to JavaScript.
2010-08-18 13:12:53 -05:00
Bryce Curtis
4b3255e4fd
Accelerometer updates:
...
- Removed thread delay to get accelerometer values.
- Override Activity lifecycle methods to manage JavaScript timers and enable window.onunload to be called. This is needed for accelerometer to shut down correctly.
2010-08-12 10:51:12 -05:00
Bryce Curtis
d5646584ee
Change accelerometer to use JavaScript setInterval for watch.
2010-08-11 13:47:50 -05:00
Joe Bowser
f15555ee34
Calling the Quota method over and over is bad, use the estimated size
2010-08-06 13:59:28 -07:00
Joe Bowser
b18657cf72
Fixing Java to match callback
2010-08-04 12:43:17 -07:00
Joe Bowser
32b68f568b
Adding the new keyword again
2010-08-04 12:38:19 -07:00
Joe Bowser
4e02179bf8
Merge branch 'master' of git://github.com/davejohnson/phonegap-android
2010-07-18 20:44:57 -07:00
Joe Bowser
853dc0d8aa
Removed console.log in accel
2010-07-16 09:41:47 -07:00
Joe Bowser
4d5d8d253b
Merge branch 'master' of git@github.com:bowserj/phonegap-android
2010-07-15 17:00:10 -07:00
Dave Johnson
ab4ca5ec8b
changed 'deviceReady' to 'deviceready' in index.html. fixed up the file utils a bit so that they sort of work.
2010-07-15 16:59:11 -07:00
Jan Monschke
9ff45f70e2
this should fix the windows encoding bug described here: http://phonegap.lighthouseapp.com/projects/20118-android/tickets/23
2010-07-15 16:59:11 -07:00
Dave Johnson
3cba58ce57
Beep does not crash your app if there is no notification sound
2010-07-15 16:59:11 -07:00
Dave Johnson
8e7ce8780e
undoing those changes for target on joes' recommendation
2010-07-15 16:59:11 -07:00
Dave Johnson
707738c3ee
added target to the droidgap script and updated the readme and getting started wiki page
2010-07-15 16:59:11 -07:00
Joe Bowser
e3b32e7679
Setting the Geolocation to be only initalized on Android 1.x
2010-07-15 16:58:38 -07:00
Joe Bowser
ea1184cdd3
Fixed up geolocation to use the native geolocation when available
2010-07-15 16:55:00 -07:00
Dave Johnson
89dd0396fe
changed gotAccel to gotCurrentAcceleration since that is what is called from getCurrentAcceleration
2010-07-12 14:44:34 -07:00
Dave Johnson
8c0cb5716d
Merge remote branch 'phonegap/master'
2010-07-12 14:43:13 -07:00
Dave Johnson
6d60a2b012
fixed bug with accelerometer z value not being set #36
2010-07-12 14:08:09 -07:00
Joe Bowser
7304741164
Merge branch 'master' of git://github.com/thedeftone/phonegap-android
2010-07-08 17:19:50 -07:00
Dave Johnson
d2048a7c5a
changed 'deviceReady' to 'deviceready' in index.html. fixed up the file utils a bit so that they sort of work.
2010-07-08 15:51:18 -07:00
Jan Monschke
ac952b25bb
this should fix the windows encoding bug described here: http://phonegap.lighthouseapp.com/projects/20118-android/tickets/23
2010-07-09 00:13:55 +02:00
Dave Johnson
d6e79f158f
Beep does not crash your app if there is no notification sound
2010-07-07 15:54:33 -07:00
Joe Bowser
9bf83337c9
Switching to native
2010-07-07 15:18:14 -07:00
Dave Johnson
36bd034ee5
Merge branch 'master' of git://github.com/phonegap/phonegap-android
2010-07-07 15:03:38 -07:00
Joe Bowser
dc58c67883
Merge branch 'master' of git@github.com:phonegap/phonegap-android
2010-07-06 13:37:44 -07:00
Joe Bowser
88eef5df66
Not in line with HTML5 spec, editing
2010-07-06 13:37:19 -07:00
Joe Bowser
c75e66a2fc
Removing the GapViewClient handler, since it breaks PhoneGap, reverting. Rather have every other URI working except for sms:
2010-07-06 11:43:25 -07:00
alunny
4e31d4af63
browserkey fix
2010-06-30 15:23:26 -07:00
Dave Johnson
5972147e36
undoing those changes for target on joes' recommendation
2010-06-28 16:19:54 -07:00
Dave Johnson
8ec0de457f
added target to the droidgap script and updated the readme and getting started wiki page
2010-06-28 16:02:10 -07:00
Joe Bowser
310766180f
Forgot to add mailto to the activities launched by intent
2010-06-25 14:31:47 -07:00
Joe Bowser
db9d603881
Fixing equals. However, perhaps object equivalence is better, because it will be the same object if we attempt to go back and fail, where as we can go back and forth numerous times in a web history
2010-06-15 10:43:28 -07:00
Joe Bowser
e5f03b6aed
Fixing compass so it actually works
2010-06-11 14:19:37 -07:00
Joe Bowser
bde54704d3
fixing the merge
2010-06-09 10:26:06 -07:00
Joe Bowser
d20abc9aad
framework/assets/js/media.js
2010-06-09 10:24:35 -07:00
Joe Bowser
945c0d95e6
Removed PhoneGap.java, renaming to device and audio
2010-06-09 10:24:35 -07:00
Joe Bowser
bb501de22c
Hacking together a work-around for the default back behaviour
2010-06-09 10:24:35 -07:00
Joe Bowser
bab03882e1
framework/assets/js/media.js
2010-06-08 16:36:07 -07:00
Joe Bowser
7ad30dfc63
Removed PhoneGap.java, renaming to device and audio
2010-06-08 16:30:20 -07:00
Joe Bowser
4c5f820316
Hacking together a work-around for the default back behaviour
2010-06-08 15:55:57 -07:00
Joe Bowser
b65a0b1bd6
Fixing quality bug in Camera
2010-06-04 15:21:57 -07:00
Joe Bowser
8f18dae2c1
Changed to use the Camera Intents to our own peril.
2010-06-04 14:54:16 -07:00
Joe Bowser
653190c6a1
Switching around attributes so they are similar
2010-06-04 13:32:00 -07:00
Joe Bowser
e55cef9c14
Fixing accel
2010-06-04 13:25:28 -07:00
Joe Bowser
c1e628f44c
Fixing up the accelerometer. Weird issue with where zero is
2010-06-04 11:42:12 -07:00
Joe Bowser
cd5788c3ce
Merge branch 'master' of git@github.com:phonegap/phonegap-android into accel_hack
2010-05-31 11:37:41 -07:00
Joe Bowser
64671184a6
Initial Commit - Fixing Accelerometer
2010-04-28 15:46:15 -07:00