摘要:
如果要从service里向activity里发消息,要把handle定义为static这样不管在那里都能获取到了。private void addTime(){ Timer timer = new Timer(); //放在计时器里是为了不断的获取进度 timer.schedule(new T... 阅读全文
摘要:
package com.example.musicplay;import java.io.InputStream;import java.io.Reader;import java.math.BigDecimal;import java.net.URL;import java.sql.Array;i... 阅读全文
摘要:
首先定义接口package com.example.musicplay;public interface PlayInterface { void play(); void playContiue(); void pause();}package com.example.music... 阅读全文
摘要:
package com.example.huahuaban;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import android.net.Uri;import a... 阅读全文