Sorry. The second way I tried to start the intent was:

Intent intent = new Intent("intent.action.VOLUME_CONTROL");
startActivity(intent);

(without the com.roozen in front)

On Apr 8, 11:12 am, droozen <[email protected]> wrote:
> 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("com.roozen.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?
--~--~---------~--~----~------------~-------~--~----~
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