Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

justin z
justin z
11,042 Points

Incorrect mimeTypes?

I keep getting an error saying that I am using the incorrect mimeTypes, but in the official google docs I saw examples using the "image/", "video/", and "plain/text" mimeTypes....so if those aren't what the challenge wants me to use then what should I use?

<?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" />
                  <data android:mimeType="image/*"/>
                  <data android:mimeType="video/*"/>
                  <data android:mimeType="plain/text"/>
                  <category android:name="android.intent.category.DEFAULT" />


1 Answer

Kourosh Raeen
Kourosh Raeen
23,733 Points

Hi Justin - Change

<data android:mimeType="plain/text"/>


<data android:mimeType="text/plain"/>