¡@

Home 

2014/10/16 ¤W¤È 08:11:29

android Programming Glossary: context.audio_service

Can we detect which android application is using the microphone?

http://stackoverflow.com/questions/11886824/can-we-detect-which-android-application-is-using-the-microphone

question 1. AudioManager am Context.getSystemService Context.AUDIO_SERVICE am.isMicrophoneMute But I don't know how to do it using NDK..

android mute camera shutter sound?

http://stackoverflow.com/questions/14476791/android-mute-camera-shutter-sound

image AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE mgr.setStreamMute AudioManager.STREAM_SYSTEM true camera.takePicture.. void run AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE mgr.setStreamMute AudioManager.STREAM_SYSTEM false 1000..

Android Speech Recognition as a service on Android 4.1 & 4.2

http://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2

super.onCreate mAudioManager AudioManager getSystemService Context.AUDIO_SERVICE mSpeechRecognizer SpeechRecognizer.createSpeechRecognizer this..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE Call this to start BluetoothHeadsetUtils functionalities. @return..

Control the default music player of android or any other music player

http://stackoverflow.com/questions/18800198/control-the-default-music-player-of-android-or-any-other-music-player

AudioManager mAudioManager AudioManager getSystemService Context.AUDIO_SERVICE if mAudioManager.isMusicActive Intent i new Intent SERVICECMD..

how can I detect whether the android phone in Silent mode programatically

http://stackoverflow.com/questions/2048427/how-can-i-detect-whether-the-android-phone-in-silent-mode-programatically

. AudioManager am AudioManager getSystemService Context.AUDIO_SERVICE switch am.getRingerMode case AudioManager.RINGER_MODE_SILENT..

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

R.layout.main am AudioManager getSystemService Context.AUDIO_SERVICE am.setMicrophoneMute true while count 1000000 Record record.. m_amAudioManager AudioManager getSystemService Context.AUDIO_SERVICE m_amAudioManager.setMode AudioManager.MODE_IN_CALL m_amAudioManager.setSpeakerphoneOn..

How to play ringtone/alarm sound in Android

http://stackoverflow.com/questions/2618182/how-to-play-ringtone-alarm-sound-in-android

AudioManager audioManager AudioManager getSystemService Context.AUDIO_SERVICE if audioManager.getStreamVolume AudioManager.STREAM_ALARM 0..

Playing multiple sounds using SoundManager

http://stackoverflow.com/questions/3039078/playing-multiple-sounds-using-soundmanager

mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE public void addSound int Index int SoundID mAvailibleSounds.add..

Change Media volume in Android?

http://stackoverflow.com/questions/4178989/change-media-volume-in-android

AudioManager audioManager AudioManager getSystemService Context.AUDIO_SERVICE audioManager.setStreamVolume AudioManager.STREAM_MUSIC int..

How do you get/set media volume (not ringtone volume) in Android?

http://stackoverflow.com/questions/4593552/how-do-you-get-set-media-volume-not-ringtone-volume-in-android

following AudioManager audio AudioManager getSystemService Context.AUDIO_SERVICE int currentVolume audio.getStreamVolume AudioManager.STREAM_RING..

Is there any way to replace or silence the camera shutter sound in android?

http://stackoverflow.com/questions/5289481/is-there-any-way-to-replace-or-silence-the-camera-shutter-sound-in-android

to set it. AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE mgr.setStreamMute AudioManager.STREAM_SYSTEM true Thanks android..

Android:sound pool and service

http://stackoverflow.com/questions/5580537/androidsound-pool-and-service

fSpeed AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE float streamVolumeCurrent mgr.getStreamVolume AudioManager.STREAM_MUSIC..

Playing sounds simultaneously Android

http://stackoverflow.com/questions/5957444/playing-sounds-simultaneously-android

mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE public void addSound int index int SoundID mSoundPoolMap.put..

Android mute/unmute phone

http://stackoverflow.com/questions/7317974/android-mute-unmute-phone

audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE audioManager.setRingerMode AudioManager.RINGER_MODE_VIBRATE.. audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE int maxVolume audioManager.getStreamMaxVolume AudioManager.STREAM_RING..

How to properly use SoundPool on a game?

http://stackoverflow.com/questions/7437505/how-to-properly-use-soundpool-on-a-game

mAudioManager AudioManager context.getSystemService Context.AUDIO_SERVICE mSoundPool new SoundPool size AudioManager.STREAM_MUSIC 0 mSoundPoolMap..

how to block a mobile number call and message receiving in android application development?

http://stackoverflow.com/questions/9904426/how-to-block-a-mobile-number-call-and-message-receiving-in-android-application-d

audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE Turn ON the mute audioManager.setStreamMute AudioManager.STREAM_RING..

Can we detect which android application is using the microphone?

http://stackoverflow.com/questions/11886824/can-we-detect-which-android-application-is-using-the-microphone

through android sdk. android android ndk share improve this question 1. AudioManager am Context.getSystemService Context.AUDIO_SERVICE am.isMicrophoneMute But I don't know how to do it using NDK and no one seems to know . AudioManager documentation 2. No..

android mute camera shutter sound?

http://stackoverflow.com/questions/14476791/android-mute-camera-shutter-sound

improve this question For Mute put this code before capturing image AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE mgr.setStreamMute AudioManager.STREAM_SYSTEM true camera.takePicture null rawCallback jpegCallback After 1 second it will..

Android Speech Recognition as a service on Android 4.1 & 4.2

http://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2

int MSG_RECOGNIZER_CANCEL 2 @Override public void onCreate super.onCreate mAudioManager AudioManager getSystemService Context.AUDIO_SERVICE mSpeechRecognizer SpeechRecognizer.createSpeechRecognizer this mSpeechRecognizer.setRecognitionListener new SpeechRecognitionListener..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

context mBluetoothAdapter BluetoothAdapter.getDefaultAdapter mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE Call this to start BluetoothHeadsetUtils functionalities. @return The return value of startBluetooth or startBluetooth11..

Control the default music player of android or any other music player

http://stackoverflow.com/questions/18800198/control-the-default-music-player-of-android-or-any-other-music-player

idea android android service share improve this question AudioManager mAudioManager AudioManager getSystemService Context.AUDIO_SERVICE if mAudioManager.isMusicActive Intent i new Intent SERVICECMD i.putExtra CMDNAME CMDSTOP YourApplicationClass.this.sendBroadcast..

how can I detect whether the android phone in Silent mode programatically

http://stackoverflow.com/questions/2048427/how-can-i-detect-whether-the-android-phone-in-silent-mode-programatically

improve this question Use the getRingerMode method in AudioManager . AudioManager am AudioManager getSystemService Context.AUDIO_SERVICE switch am.getRingerMode case AudioManager.RINGER_MODE_SILENT Log.i MyApp Silent mode break case AudioManager.RINGER_MODE_VIBRATE..

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main am AudioManager getSystemService Context.AUDIO_SERVICE am.setMicrophoneMute true while count 1000000 Record record new Record record.run count Log.d COUNT Count is count public.. the mock up of the code I used. private AudioManager m_amAudioManager m_amAudioManager AudioManager getSystemService Context.AUDIO_SERVICE m_amAudioManager.setMode AudioManager.MODE_IN_CALL m_amAudioManager.setSpeakerphoneOn false share improve this answer..

How to play ringtone/alarm sound in Android

http://stackoverflow.com/questions/2618182/how-to-play-ringtone-alarm-sound-in-android

new MediaPlayer mMediaPlayer.setDataSource this alert final AudioManager audioManager AudioManager getSystemService Context.AUDIO_SERVICE if audioManager.getStreamVolume AudioManager.STREAM_ALARM 0 player.setAudioStreamType AudioManager.STREAM_ALARM player.setLooping..

Playing multiple sounds using SoundManager

http://stackoverflow.com/questions/3039078/playing-multiple-sounds-using-soundmanager

0 mSoundPoolMap new HashMap Integer Integer mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE public void addSound int Index int SoundID mAvailibleSounds.add Index mSoundPoolMap.put Index mSoundPool.load mContext..

Change Media volume in Android?

http://stackoverflow.com/questions/4178989/change-media-volume-in-android

on your AudioManager . It could looks like this AudioManager audioManager AudioManager getSystemService Context.AUDIO_SERVICE audioManager.setStreamVolume AudioManager.STREAM_MUSIC int value if desired a flag An example use of the flag is to..

How do you get/set media volume (not ringtone volume) in Android?

http://stackoverflow.com/questions/4593552/how-do-you-get-set-media-volume-not-ringtone-volume-in-android

Is there a way to get set media volume I have tried the following AudioManager audio AudioManager getSystemService Context.AUDIO_SERVICE int currentVolume audio.getStreamVolume AudioManager.STREAM_RING but it returns the ringtone volume. android get media..

Is there any way to replace or silence the camera shutter sound in android?

http://stackoverflow.com/questions/5289481/is-there-any-way-to-replace-or-silence-the-camera-shutter-sound-in-android

Works as a great workaround. Perhaps someday we'll be able to set it. AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE mgr.setStreamMute AudioManager.STREAM_SYSTEM true Thanks android audio camera share improve this question If you are..

Android:sound pool and service

http://stackoverflow.com/questions/5580537/androidsound-pool-and-service

this R.raw.touchdown 1 public void playSound int sound float fSpeed AudioManager mgr AudioManager getSystemService Context.AUDIO_SERVICE float streamVolumeCurrent mgr.getStreamVolume AudioManager.STREAM_MUSIC float streamVolumeMax mgr.getStreamMaxVolume AudioManager.STREAM_MUSIC..

Playing sounds simultaneously Android

http://stackoverflow.com/questions/5957444/playing-sounds-simultaneously-android

0 mSoundPoolMap new HashMap Integer Integer mAudioManager AudioManager mContext.getSystemService Context.AUDIO_SERVICE public void addSound int index int SoundID mSoundPoolMap.put index mSoundPool.load mContext SoundID 1 public void playSound..

Android mute/unmute phone

http://stackoverflow.com/questions/7317974/android-mute-unmute-phone

is for to put the device in silent mode with vibrate AudioManager audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE audioManager.setRingerMode AudioManager.RINGER_MODE_VIBRATE this is for to put into the ringing mode AudioManager audioManager.. this is for to put into the ringing mode AudioManager audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE int maxVolume audioManager.getStreamMaxVolume AudioManager.STREAM_RING audioManager.setRingerMode AudioManager.RINGER_MODE_NORMAL..

How to properly use SoundPool on a game?

http://stackoverflow.com/questions/7437505/how-to-properly-use-soundpool-on-a-game

files and the SoundPool initialization is done on the app startup mAudioManager AudioManager context.getSystemService Context.AUDIO_SERVICE mSoundPool new SoundPool size AudioManager.STREAM_MUSIC 0 mSoundPoolMap new HashMap Integer Integer mSoundPoolMap.put index..

how to block a mobile number call and message receiving in android application development?

http://stackoverflow.com/questions/9904426/how-to-block-a-mobile-number-call-and-message-receiving-in-android-application-d

String block_number prefs.getString block_number null AudioManager audioManager AudioManager context.getSystemService Context.AUDIO_SERVICE Turn ON the mute audioManager.setStreamMute AudioManager.STREAM_RING true TelephonyManager telephonyManager TelephonyManager..