summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/UploadHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Pass ClipData in media capture Intent.Ben Murdoch2014-09-221-1/+6
| | | | | | | | This is necessary to ensure that the capture application has permission to read the URI that we are asking it to save the capture media into. Bug: 17524075 Change-Id: I6337e58f2610005fb22525e9ae45b037e9832db0
* Using .jpg as suffix of the temporay file for camera.Tao Bai2014-09-181-22/+21
| | | | | | | | | Also, change to use the returned file from camcorder. Because the site might rely on the suffix to know the selected file type. BUG:17524075 Change-Id: I7b393d825b5dd11c47337de1feb7d0307fee96d7
* Adapt AOSP browser to use the revised createIntent() APITao Bai2014-09-101-7/+110
| | | | | BUG:17253647,16624450 Change-Id: I0b58d945564923c4ed0fc9377a3f6267d8080c2f
* Update AOSP browser to use the new FileChooser APISelim Gurun2014-07-241-167/+8
| | | | | | | | | Bug: 16403458 The file chooser API has changed based on the suggestion from API council. Reflect the changes here. Change-Id: I4398e3659f19623496c1fcdcd0b177f2c1b39b2d
* Modify AOSP browser to take advantage of new filechooser API.Selim Gurun2014-06-181-49/+27
| | | | | Bug: 6930981 Change-Id: Id73512cd6e859ea9316f02e8f0d973b6e15d969b
* Add support for HTML Media Capture "capture" attribute.Ben Murdoch2012-04-131-30/+28
| | | | | | | | | | | | | | Receive the value for the new "capture" attribute on HTML file pickers, and do the right thing with it. Requires changes in WebKit (I0a921be31fda79a43c05da4fe22d9c808d92709c) and the framework (I494adc1274ca21ce8fe52a6c7b6b758217927e66). Bug: 5771207 Change-Id: I38dfe2df043fdba1388384dbd3b5370737eb38e5
* Fix file upload handling after ActivityNotFoundException.Ben Murdoch2011-02-221-0/+18
| | | | | | | | | | | When we launch the file picker for uploads, if nothing can handle the type of file then we catch the ActivityNotFoundException so that we do not crash and launch a default picker instead. However we still will receive a callback for the intent that failed so in this case we must skip processing it. Bug:3447924 Change-Id: Ic309f4ba1a6feda981fcce5231b9aed9be70eef2
* Fix crash when activity for file upload is not present.Ben Murdoch2011-02-181-73/+106
| | | | | | | | | | Ensure that there is an activity to handle the intents that the file upload control fires. If not, fallback to the default upload control. This CL also refactors the code to be (hopefully :)) easier to follow. Bug:3447924 Change-Id: Ie5f7b448ec1c6abc7da7df29b94cc120d3b2c60e
* Controller RefactorMichael Kolb2010-11-171-0/+214
Bug: 3170671 First step towards a model/view/control design in Browser introduced Controller object started separating UI code represent state of the app in one place only Change-Id: Ica387d6bde2dcf1a4993c3db0cce498cf34ff60f