I'm having a problem with my broadcast.
I'm not able to do that by pressing any volume button (vol +/-) my Toast is displayed. This is the most important of my manifesto:
<receiver android:name="Broadcast.b_Botones" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
and this is the simple code of my broadcast:
public class b_Botones extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context,"arranca", Toast.LENGTH_LONG).show();
}}
When you press the volume keys, nothing happens, search and I did not find anything to solve the problem. Yapa, if you know how to capture that button of the two preciono, I would serve too much!
This is what I can recover from the logcat
Thank you very much!