Excuse my ignorance.

I have attempted to read about intent filters and whatnot and cant
figure out why this doesnt work

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="zerofate.torrentDroid"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".TorrentDroid"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category." />
                <type value="application/x-bittorrent" />
            </intent-filter>
        </activity>
    </application>
</manifest>

I've got the intent included, surely the browser should be able to
download the .torrent file now? Or do i need to create a separate
activity to accept the intent, and what special requirements does this
activity require (ie extends etc).

Im pretty much at my witts end with this as i cant find any examples
or guides online targeted towards intent-filters and mime types.

Thanks

Alec

On Feb 23, 3:32 am, Dianne Hackborn <[email protected]> wrote:
> Just write an activity that supports the VIEW action of whatever MIME type a
> torrent is.
>
>
>
> On Sun, Feb 22, 2009 at 12:49 PM, Alec <[email protected]> wrote:
>
> > Hi
>
> > I've been grappling with an issue all day.
>
> > I am trying to create a program to deal with .torrent files that are
> > clicked on and/or downloaded by the browser. Currently the downloader
> > reports "Cannot download. the content being downloaded is not
> > supported on the phone"
>
> > Im fairly sure this is doable as i recently encountered the same issue
> > with pdf files untill i installed a pdf reader.
>
> > Some detailed help would be superb
>
> > Thanks
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
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