Android Intent Create audioBecomingNoisy(Context c)

Here you can find the source of audioBecomingNoisy(Context c)

Description

Send a AudioManager.ACTION_AUDIO_BECOMING_NOISY event.

License

Apache License

Parameter

Parameter Description
c Context

Declaration

@Deprecated
public static void audioBecomingNoisy(Context c) 

Method Source Code

//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);
    }
}

Related

  1. makeCall(Activity activity, String telNumber)
  2. PhotoIntent(Activity activity)
  3. VideoIntent(Activity activity)
  4. call(String aPhoneNumber, Activity aActivity)
  5. intentSysDefault(Activity activity, Class classes, Map paramMap)
  6. launchUrlInBrowser(Context context, String url)