Search code examples
androidsmsandroid-4.0-ice-cream-sandwich

Android: SMS-app available in "Choose which app to open this with"-dialog


I am developing an SMS application. How do I make the app available in the "Choose which app to open this with" dialog?

Thanks, Martin

/EDIT: I think you just misunderstood me.

I don't want to write a sms with my app, I want that others can write sms using my app and that my app is listed in the "Choose which app to open this with" dialog when you pick up sending a sms in the contact list.

An extract from my Application Manifest:

    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.APP_MESSAGING" />
        </intent-filter>
    </activity>

Adding the category "APP_MESSAGING" just did not solve it.


Solution

  • This is done with intent filters.

    http://developer.android.com/guide/topics/intents/intents-filters.html

    Look under "intent resolution" and "intent filters"