Is it possible to ignore plugged in Headset and still use phone speakers?
问题 I would like to use the Phone Speakers while a Headset is plugged-in, instead of the Headset-Speakers. Is it possible to do that? if yes, how can I achieve it? I'm developing an App in Java for Android 9 . Detection if Headset is Plugged in works so far: public class HeadsetIntentReceiver extends BroadcastReceiver { private String TAG = "HeadSet"; public HeadsetIntentReceiver() { Log.d(TAG, "Created"); } @Override public void onReceive(Context context, Intent intent) { if(intent.getAction()