android - How to make a ThreadPool? -


i making map app onclick marker creation. using simple asynctask class street address of latlng clicked can set marker , save address object list future onmarkerclick intent, can display address second activity, , of course database backup in ondestroy. problem asynctask option when create marker , click on it. if create 2-3-4 or more, don't build queue , lose first or of them except last one. reading threadpool , asynctask.thread_pool_executor find difficult. ok ask simpler explanations or/and code sample?
stuff know atm: asynctask not option cause manages single background thread. thread harder implement gives control priority. need create new thread on every click or make queue of tasks done. geocoder class option doesn't work me.(bad formatting, random unavailability).

the android developer documentation has appropriate trainigs thread pool. using this, can communicate ui thread can (in case) able manipulate/update markers , set listeners it.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -