const AsyncTask = plus.android.importClass('android.os.AsyncTask')
const doInBackgrounds = plus.android.implements('java.lang.Object', {
doInBackground: function () {
console.log('doInBackground')
}
})
// doInBackground
const newAsyncTask = new AsyncTask(doInBackgrounds)
newAsyncTask.execute()
1***@qq.com
- 发布:2021-05-13 15:04
- 更新:2023-03-03 13:00
- 阅读:380
2 个回复
2***@qq.com
哪位大神能回答一下,我也用到了AsyncTask。用plus.android.implements("java.lang.Runnable", { ... 会导致UI卡死
鑫辰大海
请问你解决了吗?