File Downloads in Android Web Browser

by Al » Tue, 22 Sep 2009 04:03:20 GMT


Sponsored Links
 For a little while now, I've been trying to figure out why I couldn't
download video files from the website i'm working with the Android OS
web browser, although I have found a work-around solution.  For some
reason, it seems as if the Android web browser (default OS web
browser) does not properly handle the "Content-Disposition:
attachment;" header from the webserver (in this case, Lighttpd).  When
attempting to download a file, all I was seeing with both HTC Dream
and HTC Magic (most recent OS version) was that it attempted to
download the file, but it couldn't detect the file name and the file
had no content.  Now after looking through the HTTP 1.1 RFC
documentation, I've noticed that they state that the "Content-
Disposition" directive is not part of the HTTP standard (Section 15.5
of RFC2616).

I thought that this issue was possibly due to the fact that no
attachment file name was being specified, but then I came across
another section in the Hypertext Transfer Protocol specification
(RFC2616) that states the following:

"RFC 1945 and RFC 2068 document protocol elements used by some
existing HTTP implementations, but not consistently and correctly
across most HTTP/1.1 applications. Implementors are advised to be
   aware of these features, but cannot rely upon their presence in, or
interoperability with, other HTTP/1.1 applications. Some of these
describe proposed experimental features, and some describe features
that experimental deployment found lacking that are now addressed in
the base HTTP/1.1 specification." (Section 19.5 RFC 2616)  As the
grammar for that directive shows (Section 19.5.1), there can be 0 or
more disposition parameters after the "Content-Disposition:
attachment" directive.  So basically, to remedy this issue, i've had
the "Content-Disposition: attachment" directive removed from the web
server, but what I'd really like to know is if this could possibly be
a bug with the Android web browser or if it's something the developers
purposely did because that directive is not officially part of the
HTTP standard?

If anyone could give me an answer on that, it would be greatly
appreciated!  Also, if I am getting any facts mixed up or if there is
something else i'm unaware of, please let me know.

Thanks

Al

--~--~---------~--~----~------------~-------~--~----~



File Downloads in Android Web Browser

by AJ » Tue, 08 Dec 2009 13:40:22 GMT


 Hi All,

I have problem in downloading the content when "Content-Disposition:
attachment" is specified in response coming from the server.

I searched the forum and found that earlier one guy also had the
similar issues. I am facing the exactly same problem which being
specified there.

Here is the link :-


Sponsored Links


File Downloads in Android Web Browser

by AJ » Tue, 08 Dec 2009 19:42:47 GMT


 i hope at least somebody would be having any idea on this.

Thanks,
AJ



> :-



File Downloads in Android Web Browser

by AJ » Wed, 09 Dec 2009 19:14:14 GMT


 ???






> > :-



Other Threads

1. Cannot Retrieve Latitude and Longitude without Internet Connection

I believe the NETWORK_PROVIDER does require Internet access, because
it sends details about cell towers (and possibly wifi hotspots) within
range to a server and gets an approximate lat/long in return. In other
words, Android does not contain internally a complete database of the
locations of all of the cell towers in the world.

I think it should work with any Internet connection - e.g. 3G or GPRS
should work as well as WiFi
--~--~---------~--~----~------------~-------~--~----~

2. What is the query that need to be done when trying to get Incomming and Outgoing calls ?

You're probably looking to query CallLog.CONTENT_URI, and then reading
the various CallLog.Calls columns that are returned:

http://d.android.com/reference/android/provider/CallLog.html

j








-- 
Jeff Sharkey
jshar...@android.com

--~--~---------~--~----~------------~-------~--~----~

3. Store prepopulated sqlite database in an app

4. What is the query that need to be done when trying to get Incomming and Outgoing calls ?

5. How read /data directory ?

6. except for setting in the AndroidManifest.xml, where I can do

7. How to set two or more List in one layout?