Пример #1
0
  // 上一首
  private void FrontMusic() {
    if ((iType == 0) || (iType == 1)) iListCount = mAudioList.getCount() - 1;
    else iListCount = mDragAudioList.getCount() - 1;

    if (--iChapter < 0) iChapter = iListCount;
    /*
        	if (NewPlayMusicActivity.iAudioPlayerState > 2){
          	  Intent intent = new Intent(NewPlayMusicActivity.this, PlayMusicService.class);
    	          stopService(intent);
    	          iAudioPlayerState= 0;
          	}
    */
    playMusic(iChapter);
  }
Пример #2
0
 // 下一首
 private void nextMusic() {
   // TODO Auto-generated method stub
   if ((iType == 0) || (iType == 1)) iListCount = mAudioList.getCount() - 1;
   else iListCount = mDragAudioList.getCount() - 1;
   if (++iChapter > iListCount) iChapter = 0;
   /*
       	if (NewPlayMusicActivity.iAudioPlayerState > 2){
         	  Intent intent = new Intent(NewPlayMusicActivity.this, PlayMusicService.class);
   	          stopService(intent);
   	          iAudioPlayerState= 0;
         	}
   */
   playMusic(iChapter);
 }