我使用java線程從API下載zip文件。當我開始下載文件時,下載進度將顯示在通知欄中。當我向下滾動通知欄時,它沒有響應,只是掛起設備,直到下載完成。如果下載完成,那麼在滾動通知欄中沒有問題。 我的問題是: 1.how,讓應用運行流暢,沒有任何滯後是否有任何其他的方法來處理在安卓下載進度? 2.the app take some time to start download.is there an
我有一個單獨的類是這樣的: private static StringsHandler INSTANCE = null;
private int count = 0;
//I have 2 methods so I don't have to be sending nulls to getInstance
//once it's created
public static void cre
我有這個Transmitter類,其中包含一個BufferedReader和一個PrintWriter。這個想法在主類中使用Transmitter.receive()和Transmitter.transmit()到主套接字。問題是: public void receive() throws Exception {
// Reads from the socket
Threa