Here you can find the source of audioBecomingNoisy(Context c)
Parameter | Description |
---|---|
c | Context |
@Deprecated public static void audioBecomingNoisy(Context c)
//package com.java2s; /*//ww w . ja v a 2s . c om * Copyright 2012 Laurent Constantin <android@blackcrowsteam.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import android.content.Context; import android.content.Intent; public class Main { /** * Send a AudioManager.ACTION_AUDIO_BECOMING_NOISY event. This event can * only be send by the system and is blocked by SELinux since Android 4.3 * * @param c * Context */ @Deprecated public static void audioBecomingNoisy(Context c) { Intent i = new Intent(); i.setAction(android.media.AudioManager.ACTION_AUDIO_BECOMING_NOISY); c.sendBroadcast(i); } }