public void soundPlay(int position){ mMediaPlayer = new MediaPlayer(); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_ALARM); RingtoneManager mRingtoneManager = new RingtoneManager(this); mRingtoneManager.setType(RINGTON_STREAMTYPE); Uri uri = mRingtoneManager.getRingtoneUri(position); try { mMediaPlayer.setDataSource(this, uri); } catch (IllegalArgumentException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } catch (SecurityException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } catch (IllegalStateException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } catch (IOException e) {