Jody Baker, CAP has been working in the professional world since 2014. Jody began their career as an Assistant Tennis Director at Midtown Athletic Clubs. In 2016, they joined LSI Solutions as an Event Marketing Coordinator and Executive Assistant. In 2019, they moved to Pandion Optimization Alliance as a Sr. Assistant to the President. Most recently, in 2021, they joined Foundry, a Digital Currency Group Company, as a Special Projects Lead. In this role, they work to provide North American miners and manufacturers with the resources to build, maintain, and secure decentralized networks.
package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.ArrayList;
public class FamilyActivity extends AppCompatActivity {
private MediaPlayer mMediaPlayer;
private AudioManager mAudioManager;
private MediaPlayer.OnCompletionListener mCompletionListener = new MediaPlayer.OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mediaPlayer) {
releaseMediaPlayer();
}
};
private AudioManager.OnAudioFocusChangeListener mOnAudioFocusChangeListener = new AudioManager.OnAudioFocusChangeListener() {
@Override
public void onAudioFocusChange(int focusChange) {
if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT ||
focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) {
mMediaPlayer.pause();
mMediaPlayer.seekTo(0);
} else if (focusChange == AudioManager.AUDIOFOCUS_GAIN) {
mMediaPlayer.start();
} else if (focusChange == AudioManager.AUDIOFOCUS_LOSS) {
releaseMediaPlayer();
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.word_list);
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
final ArrayList<Word> words = new ArrayList<Word>();
words.add(new Word("father", "әpә", R.drawable.family_father, R.raw.family_father));
words.add(new Word("mother", "ә
Sign up to view 0 direct reports
Get started