This is a duplicate post from Google Groups. Not sure if the people here also browse there or not...
Maybe this belongs in the beginners group, but I'm trying to make my
application available through an intent. It's a volume controller app,
so I figured it might be handy for another application to be able to
call it to adjust volume without having to write their own.
In my volume controller app, I have this activity as my main screen:
<activity android:name=".MainSettings" 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="intent.action.VOLUME_CONTROL"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
From another app, I call with:
Intent intent = new Intent();
intent.setAction("intent.action.VOLUME_CONTROL");
startActivity(intent);
Or I've tried:
Intent intent = new Intent("intent.action.VOLUME_CONTROL");
startActivity(intent);
Neither works. The process trying to call the other app fails. I've
also tried removing the category.DEFAULT category from my intent
filter, with no success.
What am I missing?


