Shaun
Shaun

Reputation: 5531

Android multi-core development

So, im wondering where I can find some tutorials/examples on how to specify certain task for a second core, or if this is even possible. Im building an app for the Honeycomb tablets, and if the second core is available I want to do some heavy string parsing everytime someone types in a edittext. I tried google, but I couldnt find anything except for news on multi core androids...

Upvotes: 0

Views: 1308

Answers (2)

Mikko
Mikko

Reputation: 1

If you UI become unresponsive, it typically just means that you're doing work in UI thread that you shouldn't be doing there. So practically do the work in separate thread (or even create many of them to do the work). Good threading keep UI fluid no matter how many cores you have.

In Android you can use AsyncTask, Java's Threads or Services to do your work.

Upvotes: 0

Rajdeep Dua
Rajdeep Dua

Reputation: 11230

i dont think there is a way to specify that in the code. Thread scheduler will take care of using the multicore on its own.

Upvotes: 3

Related Questions