English 中文(简体)
如何使用AsyncTask和ThreadPoolExecutor
原标题:How to use AsyncTask with ThreadPoolExecutor

在ThreadPoolExecutor,我略感困惑。 这里,我正在努力做到:

我有一份名单,有左边的图像一对,右边有简短的描述。 我已经固定地界定了所有案文,但希望从网上获得这些术语。 我已经知道如何从月球中获取图像,然而,我无意在一根基中挖掘出一只深层的镜子,以 gr弄一孔的形象。 因此,我读到作为同仁的副手上,我不知道如何去做。 你们能够给我一个头脑? do 我必须在其内部建立一个read子施压器和使用 as子?

我的名单上也一样,没有ons。

___________________________
[icon][a short description]
____________________________
[icon][a short description]
_____________________________
[icon][a short description]
_____________________________
[icon][a short description]
____________________________
最佳回答

我只建议使用AsyncTask,而不是担心<代码>。 ThreadPoolExecutor, which requires HoneyComb anyway. Async 任务有一只read子,将重新用于所有清单项目。 它赢得一只con子的bu。

Just keep in mind that your tasks will be running in parallel on Android 2.x and to keep track of any synchronization issues your code might have.

问题回答

您将需要使用以下方法:executeOnExecutor()与你自己的执行机构共同启动。

似乎有山羊,因此仔细阅读了<代码>的整个网页。 AsyncTask。

是的,你可以创建自己的<条码>。 ThreadPoolExecutor , 并用AsyncTask加以使用。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签