On Thu, Aug 18, 2011 at 11:19 PM, Kristopher Micinski
<[email protected]> wrote:
> On Thu, Aug 18, 2011 at 10:36 PM, Raziel23x <[email protected]> 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
>

Try replacing with:

application/x-rar-compressed

instead of mime type rar (of course, you have to put that in quotes,
but, you know that.

Kris

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

Reply via email to