freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于安卓平臺的程序開發(fā)(編輯修改稿)

2025-02-12 11:43 本頁面
 

【文章內(nèi)容簡介】 }else{ if(pause) { ()。 }else{ ()。 if(++currentIndex=()) { currentIndex=0。 } play(MUSIC_BASE_PATH+(currentIndex))。 }} } })。 } } }package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class MusicActivity extends Activity{ private ImageButton play_pause。 private ImageButton play_stop。 private ImageButton play_next。 private ImageButton play_prev。 private TableLayout tl。 private static final String MUSIC_BASE_PATH=/sdcard/。 private ListStringmusic_list=new ArrayListString()。 private boolean pause=false。 private MediaPlayer mp。 private int currentIndex=0。 @Override protected void onCreate(Bundle savedInstanceState) { // TODO Autogenerated method stub (savedInstanceState)。 setContentView()。 play_pause=(ImageButton)findViewById()。 play_stop=(ImageButton)findViewById()。 play_next=(ImageButton)findViewById()。 play_prev=(ImageButton)findViewById()。 mp=new MediaPlayer()。 tl=(TableLayout)findViewById()。 loadSong()。 } /** * 下一首 * @param path */ public void nextplay(){ ()。 if(++currentIndex=()){ currentIndex=0。 } play(MUSIC_BASE_PATH+(currentIndex))。 } /** * 上一首 * @param path */ public void prevplay(){ ()。 if(currentIndex0){ currentIndex=()1。 } play(MUSIC_BASE_PATH+(currentIndex))。 } /** * 播放當前音樂 * @param path */ public void play(String path){ ()。 ()。 try{ (path)。 ()。 ()。 (new OnCompletionListener() { @Override public void onCompletion(MediaPlayer arg0) { // TODO Autogenerated method stub } })。 } catch (SecurityException e) { // TODO Autogenerated catch block ()。 } catch (IllegalStateException e) { // TODO Autogenerated catch block ()。 } catch (IOException e) { // TODO Autogenerated catch block ()。 } } public void currentMusic(){ int count=()。 for(int i=1。icount。i++){ (i).setBackgroundColor()。 } TableRow tr=(TableRow)(currentIndex+1)。 if(tr!=null){ ()。 } } public void loadSong(){ File file=new File(MUSIC_BASE_PATH)。 File[] f=(new FilenameFilter() { @Override public boolean accept(File arg0, String arg1) { // TODO Autogenerated method stub return (.mp3)。 } })。 if(0){ for(int i=0。i。i++){ (f[i].getName())。 TableRow tr=new TableRow(this)。 TextView tv1=new TextView(this)。 (+(i+1))。 (tv1,0)。 TextView tv2=new TextView(this)。 (f[i].getName())。 (tv2,1)。 TextView tv3=new Tex
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1