Saturday, January 21, 2012

How to display a progress message aka "hourglass" in Android around long running tasks, really moving that long running tasks to a different thread but obstructing your activity with a curtain from progress so messages are processed and everything shows. Here is a snippet:

ProgressDialog dialog =, "Title",
"Your message", true);
final Handler handler = new Handler() {
public void handleMessage(Message msg) {


Thread export = new Thread() {
public void run() {

// callLongTask();



Anonymous said...


Anonymous said...

ただしこの は通常 として変更 レプリカ 製品は になる
にくく お知らせ。 彼女は 本当にすぐに の認識 彼女
のための眼識 構築。 ことができます今 誇示 スタイリッシュな
トートバッグ にいつでも あらゆる機会。 ブラックは、おそらく 彼女 の好きなファッション

Take a look at my web page: UGG Boots

Coach Factory said...

louboutin outlet, michael kors handbags clearance, air jordan, oakley vault, burberry outlet online, kate spade handbags, louis vuitton handbags, michael kors outlet online, ray ban sunglasses, cheap oakley sunglasses, michael kors outlet online, toms shoes, prada outlet, true religion outlet, jordan shoes, coach purses, longchamp handbags, michael kors outlet, polo ralph lauren outlet online, coach outlet store online, nike free, tiffany and co, polo ralph lauren outlet, prada handbags, oakley sunglasses, nike air max, longchamp handbags, true religion, nike free, kate spade outlet, nike shoes, tory burch outlet, nike air max, louis vuitton outlet online, coach outlet, coach factory outlet, true religion jeans, ray ban sunglasses outlet, air max, longchamp outlet, air max, gucci outlet, louboutin, cheap michael kors, chanel handbags

Coach Factory said...

lululemon outlet, ray ban, nike roshe, mont blanc, converse shoes, karen millen, michael kors, roshe run, nfl jerseys, nike huarache, birkin bag, beats by dre, mac cosmetics, hogan, louboutin, converse pas cher, ray ban pas cher, montre pas cher, michael kors, vans, north face jackets, lululemon, oakley pas cher, north face outlet, reebok outlet, michael kors, nike free, ralph lauren, nike trainers, louis vuitton, louis vuitton, hollister, hermes, timberland, abercrombie and fitch, supra shoes, new balance shoes, juicy couture outlet, mulberry, air max, lancel, hollister, north face, rolex watches, juicy couture outlet, burberry, wedding dresses, new balance pas cher, abercrombie and fitch, nike air max

Coach Factory said...

nike air max, air max pas cher, p90x3, converse, ugg boots, ferragamo shoes, giuseppe zanotti, louboutin, moncler, mcm handbags, air max pas cher, ralph lauren, ugg outlet, soccer jerseys, valentino shoes, herve leger, babyliss pro, moncler, moncler, jimmy choo, vans, asics gel, air max, moncler outlet, chi flat iron, canada goose outlet, uggs on sale, hollister, canada goose, instyler ionic styler, moncler, canada goose, insanity, marc jacobs, tn pas cher, ray ban, canada goose outlet, air max, soccer shoes, canada goose, bottega veneta, ghd, ugg, celine handbags, ugg, gucci, canada goose, ugg boots, oakley

mao yun said...

replica watches
cheap oakley sunglasses
fred perry polo shirts
lacoste shirts
marc jacobs handbags
kate spade
cheap oakley sunglasses
soccer jerseys for sale
tods shoes
air jordan 4
jordan 4 retro
puma sneakers
hollister uk
christian louboutin shoes
burberry handbags
ray ban
longchamp outlet
louboutin shoes
abercrombie outlet
michael kors canada
burberry outlet online
louis vuitton outlet
kate spade outlet
ralph lauren
kate spade outlet
prada outlet
converse all star
coach outlet online
tiffany and co jewelry
fitflop sandals
ghd hair
toms shoes
oakley sunglasses
valentino shoes
oakley vault
new balance 574
cheap nhl jerseys
new balance shoes
cheap ray ban sunglasses