summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/UploadHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Add category 'CATEGORY_OPENABLE' to upload handler intent.Tarun Nainani2015-02-051-0/+1
| | | | | | | | | | | | | | Missing category from intent was allowing file handler to show 'Contacts' in the open from list. UploadHandler is meant to only handler URIs that can be opened with 'openFileDescriptor'. This patch fixes issue by adding category 'CATEGORY_OPENABLE' to file chooser intent which hides 'Contacts' and only shows categories supported by upload handler. CR-Fixed: 772926 Change-Id: Ie28aa54090ab5d7a0c9bf3725368b67cdf1eb407
* Fix for Duplicate FileChooser Result exceptionAxesh R. Ajmera2015-01-131-4/+5
| | | | | | | | The callback was not getting cleaned up properly due to which exception was getting triggered when browser was getting destroyed. Change-Id: I97400e72eb52e3f7af6e01d82479b1764cd9b4af
* Perform more robust checks for list of appsAxesh R. Ajmera2014-12-101-4/+12
| | | | | | | | | | | | | queried by upload handler. The upload handler presumed atleast one set of app available, when it queries the package manager for multiple intents such as camera,camcorder, sound recorder and documents. But if the device has no apps, which support any of above intent then package manager would return an empty list. Change-Id: Ia4cd989f33a9f08da3c0bb1eebf310344ce6428e
* Add more switches to enable/disable carrier featuresPanos Thomas2014-12-101-3/+5
| | | | | | | | | | Add bools to enable/disable the following carrier specific features: - Exit menu item with 'Minimize or quit' dialog - Display page title instead of URL in URL bar - Allow users to provide custom download path Add method to detect if a carrier specific feature is enabled. Change-Id: I9db1b16afd14e476de474e8c86bd60ba1a450aba
* Reattach the scheme to filepath of UploadHandlerAxesh R. Ajmera2014-11-051-2/+6
| | | | | | | | | | | The native layer expects the filepath in a Url format. Sending an absolute path causes the conversion to a url to be invalid. Thus reattaching the scheme converts the file path to valid URL. Change-Id: I5566108398ccc4dcba6d750c95f63b84cacf492b
* Fix for upload handlerAxesh R. Ajmera2014-09-291-12/+23
| | | | Change-Id: I04689ba507719f3cb55683acf1e8427b1e2c6e07
* Upload Handler.Axesh R. Ajmera2014-07-221-25/+183
| | | | Change-Id: Ia6ed884ac558f4f5371c227bad992f3efc0feaee
* Changes to conform to new overlay formatBijan Amirzada2014-05-141-3/+3
| | | | | | | | | - Added new overlay resources and checks for new resource values - Removed all references to carrier specific lookups and converted them to overlay implementations instead. - Removed old resources from assets directory Change-Id: I5143b499ffb6f1e08d1f9c846eec94300de87561
* Enable file upload, WLAN alert and estore URIVivek Sekhar2014-05-061-42/+131
| | | | | | | | | | | | | | | | | | - Implement file upload feature. 1. Allow selecting a file to upload from device 2. Port DRM check's for carrier. - Bring in wap2estore changes to browser from 3.7.1 This feature contains two points: 1. When user input text starting with "estore:" in url bar, will go to estore app when installed or go to download client webpage when uninstalled. 2. When user click one hyperlink whose url starts with "estore" in webpage, will be the same behavior as above case. - Alert user when WLAN is not available and request using mobile data Change-Id: I2b93d82c19ea13f36889c3171ef695187d77a12b
* Modified last of reflection calls to use ReflectHelper classBijan Amirzada2014-04-161-1/+1
| | | | | | | Also modified ReflectHelper class to consolidate the API and modified browser code to reflect the API changes. Change-Id: I708f43cf3c1432adc7cd78c25264330a673ffeb5
* Change SWE app properties back to stock AndroidBijan Amirzada2014-03-211-0/+310
| | | | | | | | | | | - Changed project package name from com.android.swe.browser back to com.android.browser along with code references to old package name. - Changes to AndroidManifest making it conform closer to stock browser manifest. - Changed app and apk name back to Browser. Change-Id: I778ee1d1197bd50bd4a4850eef6d1d7f4ef0ad0b
* Copy of new files from 1599Bijan Amirzada2014-03-041-304/+0
| | | | | | Modified folder structure - added swe folder Change-Id: I2b48a1635ad0a6406398aa9f1021a1f43baebeef
* Browser: add to unsupport uploading drm fileskaiyiz2013-08-051-1/+42
| | | | | | | | | | Add this for carrier feature. When upload files are drm files,will not execute upload and make a toast to notify user the drm type is unsupported. CRs-Fixed: 520181 Change-Id: I428adfdcc9248d89eec1bee32fdaba47577c2f8f
* 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