Bryce Curtis
1a9173d2c3
Added comments.
2010-09-20 21:09:35 -05: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
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
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
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
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
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
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
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
b02f376826
Catch exceptions in async callbacks.
2010-09-09 11:03:46 -05:00
Bryce Curtis
3c9bae3402
Optimize accelerometer for plugin manager.
2010-09-08 17:09:22 -05: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
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
Bryce Curtis
1febba48ff
Moved camera code from DroidGap into CameraLauncher. Added comments and error messages.
2010-09-02 11:27:48 -05: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
Bryce Curtis
90b708fe83
Update audio playback and recording.
2010-08-31 15:39:37 -05:00
brianleroux
06779773dd
reworking in new droidgap lite
2010-08-30 15:57:07 -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
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
764c9191b7
Merged in latest.
2010-08-25 22:32:31 -07:00
Dave Johnson
b01668d262
Fix for a merge problem
2010-08-25 15:12:23 -07:00
Dave Johnson
56f0e8e087
undo the splash screen for now
2010-08-24 18:59:05 -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
49de553ee8
refactored the Command stuff a bit more, added a spashscreen
2010-08-24 18:58:16 -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
filmaj
8683667041
Semi-colon + new-line addition otherwise built phonegap.js is bad :(
2010-08-24 11:34:32 -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
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
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
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
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
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
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
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
6d60a2b012
fixed bug with accelerometer z value not being set #36
2010-07-12 14:08:09 -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
Joe Bowser
e5f03b6aed
Fixing compass so it actually works
2010-06-11 14:19:37 -07:00
Joe Bowser
d20abc9aad
framework/assets/js/media.js
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
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
Igor Anic
a65b578449
adding useful telephony information to Device; sim serial number and some oters
...
(cherry picked from commit da8c4f4a7539b2e6165d48ad6859f65c3133fc59)
2010-05-14 16:24:30 -07:00
Joe Bowser
a179fbd095
Attempt to fix the HTML 5 storage
2010-05-14 15:49:14 -07:00
Joe Bowser
64671184a6
Initial Commit - Fixing Accelerometer
2010-04-28 15:46:15 -07:00
filmaj
887ab4a28b
Added explicit disabling of native Geolocation object in the web client, added a fallback measure to JavaScript geolocation PhoneGap constructor so that it builds/proxies the the instantiated Geo objects properly if it still does exist.
2010-03-23 16:37:30 -07:00
filmaj
f53b4ec109
Merged imhotep`s changes, still need to fix droidgap and the android shell call on Windows vs. other OSes.
2010-03-17 10:50:43 -07:00
Anis
915bf19378
Merge branch 'master' of github.com:imhotep/phonegap-android
2010-03-15 17:44:44 -07:00
Anis
a4cc222a43
fixing some minor js issue
2010-03-15 17:38:46 -07:00
Brock Whitten
f32bb7057e
Fixed ridiculous error in Javascript for GeoLocation
2010-03-15 17:01:12 -07:00
Brock Whitten
57a41b7b2f
Found syntax error in Geolocation. Probably been lurking here for months
2010-03-15 16:07:14 -07:00
filmaj
bdf01735cd
Merging.
2010-03-04 15:11:49 -08:00
Brock Whitten
64574be133
Can't get the disk space until we get the disk space
2010-02-25 11:45:57 -08:00
Brock Whitten
f93c2badcc
Minor change for synchronous write. This seems like a bad idea.
2010-02-25 10:09:58 -08:00
Brock Whitten
9c0259c2c1
Changing File Behaviour to sync with iPhone
2010-02-25 09:46:46 -08:00
Brock Whitten
2fa78679cb
Adding Javascript Interface for Crypto
2010-02-24 16:19:01 -08:00
filmaj
02c750134c
Added ARenzi`s Reachability fixes.
2010-02-23 11:07:30 -08:00
filmaj
76a8203176
Fixed small contacts and accelerometer object instantiation bugs. Added a bit more delay to PhoneGap constructor, 1ms caused issues sometimes I *think*.
2010-02-13 18:58:45 -08:00
filmaj
5255f63237
Fixed building of phonegap.js in build script. Fixed GPS on Android 2.0+ - I guess they updated the version of WebKit being used on Android (similar now to how it works on iPhone) and thus the browser has a native navigator.geolocation object. Employed Jesses approach to proxying an object
s method since we can`t directly overwrite it.
2010-02-13 17:09:02 -08:00
Brian LeRoux
923c29aa2b
cleanup continued
2010-01-26 16:24:35 -08:00
Brian LeRoux
e3dc010b97
reorg of project assets
2010-01-26 13:54:02 -08:00
Joe Bowser
4ea49574a6
Misc. Fixes
2009-11-24 17:36:37 -08:00
Joe Bowser
d012235bc2
Initial Move of the Javascript OUT of the shared directory: Android
2009-11-17 10:38:49 -08:00