[問題] 請問執行緒
寫了安卓半年多了,http請求下載一直都是使用Asyntask,
最近主管突然要來 code refactor,他說 Asyntask不容易讀(每個 method 傳值從哪來他
不懂)執意要用 FutureTask,網路上的範例根本找不到有跟 ui 互動的 futuretask啊?!
用futuretask下載檔案然後 broadcasts call view根本畫面很塞(都黑屏了)考慮用handl
er做了,可是這樣跟 asyntask做法跟本一樣,而且官方還封裝的更好,
請問版上的大大可以指導一下嗎?
真的可以用 futuretask做出良好的 http請求嗎?謝謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.81.247.60
※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1460548766.A.D90.html
→
04/13 20:23, , 1F
04/13 20:23, 1F
→
04/13 21:00, , 2F
04/13 21:00, 2F
→
04/13 21:03, , 3F
04/13 21:03, 3F
→
04/13 21:48, , 4F
04/13 21:48, 4F
→
04/13 21:50, , 5F
04/13 21:50, 5F
→
04/14 04:40, , 6F
04/14 04:40, 6F
→
04/14 08:39, , 7F
04/14 08:39, 7F
→
04/14 08:39, , 8F
04/14 08:39, 8F
→
04/14 08:43, , 9F
04/14 08:43, 9F
→
04/14 08:43, , 10F
04/14 08:43, 10F
→
04/14 12:16, , 11F
04/14 12:16, 11F
→
04/14 18:10, , 12F
04/14 18:10, 12F
推
04/15 15:02, , 13F
04/15 15:02, 13F
→
04/16 01:27, , 14F
04/16 01:27, 14F
→
04/16 01:27, , 15F
04/16 01:27, 15F
→
04/16 01:27, , 16F
04/16 01:27, 16F
推
04/17 23:03, , 17F
04/17 23:03, 17F
→
04/18 16:09, , 18F
04/18 16:09, 18F
→
04/18 16:12, , 19F
04/18 16:12, 19F
→
04/18 16:13, , 20F
04/18 16:13, 20F
→
04/18 16:14, , 21F
04/18 16:14, 21F
→
04/18 16:15, , 22F
04/18 16:15, 22F
→
04/18 16:17, , 23F
04/18 16:17, 23F
→
04/18 16:19, , 24F
04/18 16:19, 24F
→
04/18 16:21, , 25F
04/18 16:21, 25F
→
04/18 16:22, , 26F
04/18 16:22, 26F
→
04/19 08:54, , 27F
04/19 08:54, 27F
→
04/19 08:54, , 28F
04/19 08:54, 28F
討論串 (同標題文章)
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章