List of usage examples for android.media AudioManager.OnAudioFocusChangeListener interface-usage
From source file in.risysnetworks.shplayer.mediacontroller.MusicPlayerService.java
public class MusicPlayerService extends Service implements AudioManager.OnAudioFocusChangeListener, NotificationManager.NotificationCenterDelegate { public static final String NOTIFY_PREVIOUS = "musicplayer.previous"; public static final String NOTIFY_CLOSE = "musicplayer.close"; public static final String NOTIFY_PAUSE = "musicplayer.pause";
From source file co.codecrunch.musicplayerlite.manager.MusicPlayerService.java
public class MusicPlayerService extends Service implements AudioManager.OnAudioFocusChangeListener, NotificationManager.NotificationCenterDelegate { public static final String NOTIFY_PREVIOUS = "musicplayer.previous"; public static final String NOTIFY_CLOSE = "musicplayer.close"; public static final String NOTIFY_PAUSE = "musicplayer.pause";
From source file com.customprogrammingsolutions.MediaStreamer.MediaStreamerService.java
public class MediaStreamerService extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener, AudioManager.OnAudioFocusChangeListener { private final static String TAG = "MediaStreamer"; public static final int AUDIO_FOCUS_DENIED_ERROR = 0; public static final int MEDIA_PLAYER_ERROR = 1;
From source file info.tongrenlu.music.LocalPlayback.java
/** * A class that implements local media playback using {@link android.media.MediaPlayer} */ public class LocalPlayback implements Playback, AudioManager.OnAudioFocusChangeListener, OnCompletionListener, OnErrorListener, OnPreparedListener, OnSeekCompleteListener {
From source file com.example.lzhang.stockchartt.media.playback.LocalPlayback.java
/** * A class that implements local media playback using {@link android.media.MediaPlayer} */ public class LocalPlayback implements Playback, AudioManager.OnAudioFocusChangeListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnSeekCompleteListener {
From source file com.lithiumli.fiction.PlaybackService.java
public class PlaybackService extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener, AudioManager.OnAudioFocusChangeListener { public static final String EVENT_PLAYING = "com.lithiumli.fiction.PLAYING"; public static final String EVENT_PLAY_STATE = "com.lithiumli.fiction.PLAY_STATE"; public static final String DATA_SONG = "com.lithiumli.fiction.SONG"; public static final String DATA_STATE = "com.lithiumli.fiction.STATE";
From source file ca.mudar.snoozy.receiver.PowerConnectionReceiver.java
public class PowerConnectionReceiver extends BroadcastReceiver implements AudioManager.OnAudioFocusChangeListener { private static final String TAG = makeLogTag(PowerConnectionReceiver.class); private static final int AUDIO_FOCUS_DURATION = 1000; private static final String FORMAT_ORDINAL_DAY = "yyyyDDDD"; // Ensure that ordinalDate is greater than previous julianDay values private Ringtone mRingtone;
From source file com.imagine.BaseActivity.java
public final class BaseActivity extends NativeActivity implements AudioManager.OnAudioFocusChangeListener { private static final String logTag = "BaseActivity"; static native void onContentRectChanged(long windowAddr, int left, int top, int right, int bottom, int windowWidth, int windowHeight);
From source file com.mishiranu.dashchan.content.service.AudioPlayerService.java
public class AudioPlayerService extends Service implements AudioManager.OnAudioFocusChangeListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, ReadFileTask.Callback { private static final String ACTION_START = "com.mishiranu.dashchan.action.START"; public static final String ACTION_CANCEL = "com.mishiranu.dashchan.action.CANCEL"; public static final String ACTION_TOGGLE = "com.mishiranu.dashchan.action.TOGGLE";
From source file org.tunesremote.util.NotificationService.java
/** * Author: Alex Curran Date: 12/07/2012 Time: 20:14 */ public class NotificationService extends Service implements AudioManager.OnAudioFocusChangeListener { public static final String TAG = NotificationService.class.toString();