• Using Different Media Libraries in Android

    Android provides two main API’s for playing sounds. SoundPool MediaPlayer SoundPool SoundPool can be used for small audio clips. It can repeat sounds and play several sounds simultaneously. The sound files played with SoundPool should not exceed 1 MB. SoundPool […]

  • How to stream an audio in Android?

    This is a simple example to how to stream an audio in android. Here is the java code for that. This is the xml that contains the button. When you run this program you will see a button and on […]

  • How to set your Android phone in Silent Mode or Vibrate Mode or Normal Mode programatically?

    First create an instance of the AudioManager Class using which you can set the phone in Normal, Silent and Vibration Mode. AudioManager audio_mngr = (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE); For setting the phone in Silent mode.. audio_mngr .setRingerMode(AudioManager.RINGER_MODE_SILENT); For setting the phone in […]


Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.