小萱 杨

Public Relations Manager at Acala Network

小萱 杨 has worked in the marketing and public relations field for the past three years. 小萱 started their career in 2017 at the Qtum Foundation as a Marketing and Public Relations Manager. In 2019, they moved to Acala Network, where they currently serve as a Public Relations Manager.

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 ColorsActivity extends AppCompatActivity {

private MediaPlayer mMediaPlayer;

private AudioManager mAudioManager;

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();

}

}

};

private MediaPlayer.OnCompletionListener mCompletionListener = new MediaPlayer.OnCompletionListener() {

@Override

public void onCompletion(MediaPlayer mp) {

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("red", "weṭeṭṭi", R.drawable.color_red, R.raw.color_red));

words.add(new Word("

Links


Org chart

Sign up to view 0 direct reports

Get started