Thursday, August 18, 2011

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

On Thu, Aug 18, 2011 at 10:36 PM, Raziel23x <raziel23x@gmail.com> wrote:
> myweb.setDownloadListener(new DownloadListener() {
>                public void onDownloadStart(String url, String userAgent,
>                        String contentDisposition, String mimetype,
>                        long contentLength) {
>                    Intent intent = new Intent(Intent.ACTION_VIEW);
>                    intent.setData(Uri.parse(url));
>                    intent.setType(MIME_TYPE_RAR);
>                    startActivity(intent);
>
>                }
>            });
>
> but the MIME_TYPE_RAR shows as a error in Eclipse am I doing something
> wrong?
>

Where did you come up with MIME_TYPE_RAR? I googled it and only got
this conversation.

Kris

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment