(四)開啓服務對本地音樂進行排序

service端獲取音樂列表的數據寫好之後 我們便可以在展示音樂列表的Activity端進行獲取了 這裏採用先start在bind的方式開啓服務 確保Activity關閉後服務依舊存在 //啓動核心服務 Intent intent = new Intent(this, MusicService.class); startService(intent); bindService(intent, se
相關文章
相關標籤/搜索