Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在AsyncTask's中传递数组publishProgress?在我的代码中,我有:
AsyncTask
publishProgress
publishProgress(returnOK, dataType, data)
数组在哪里data(用户决定他想接收多少数据)。
data
是的。类型是通用的,所以它可以是一个数组。只要确保双方都这样对待它。