Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Intents and Broadcast Receivers Implicit Intents and Intent Filters Creating Intent Filters

Robin Damsgaard Larsen
Robin Damsgaard Larsen
13,929 Points

Coding challenge not accepting (correct?) mimeTypes

I browsed the docs via the provided link in the challenge, and in the section on Music or Video, it says to define mimeTypes as " video/* " and " audio/* " for catch-all intent filters. Along with "plain/text", that's exactly what I've done, but the solution is being rejected. It seems like a rather simple assignment, but if it isn't the video and audio mime types stated above, I really don't know what it is.

<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.teamtreehouse.timetraveler"


        <activity android:name=".MainActivity">
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>

        <activity android:name=".TimeTravelActivity">
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="plain/text"/>
            <data android:mimeType="image/*"/>
            <data android:mimeType="video/*"/>

Robin Damsgaard Larsen
Robin Damsgaard Larsen
13,929 Points

Right, so I copied and pasted the three data elements from one of the other posts answering a similar question, and it worked. It turns out I had written "plain/text" (as you can see in the code above) instead of the correct "text/plain". Silly me.