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

تيتو said...

شركة تسليك المجارى بالرياض
شركة شفط البيارات بالرياض
شركة تنظيف الخزانات بالرياض
شركة عزل الاسطح بالرياض
شركة تنظيف الشقق بالرياض
شركة تنظيف الفلل بالرياض
شركة رش المبيدات بالرياض
شركة مكافحة النمل الابيض بالرياض
شركة غسيل السجاد بالرياض
شركة كشف تسربات المياه بالرياض
شركة نقل الاثاث بالرياض
شركة رش مبيدات بأبها

تيتو said...

شركة تنظيف بجده
شركة تنظيف شقق بجده
شركة تنظيف فلل بجده
شركة تنظيف قصور بجده
شركة تنظيف خزانات بجده
شركة عزل اسطح بجده
شركة عزل خزانات بجده
شركة تنظيف مجالس لجده
شركة تنظيف مساجد بجده
شركة مكافحة النمل الابيض بجده
شركة رش مبيدات بجده
مكافحة صراصير المطبخ
شركة نقل اثاث بجده
شركة نقل عفش بجده
شركة مكافحةالنمل الابيض بأبها

Weiming Zhu said...

ugg boots
air jordan 13
air jordan shoes
beats headphones
bottega veneta outlet
burberry outlet
canada goose outlet
chanel outlet
cheap wedding dresses
coach outlet
dansko outlet
evening dresses
hermes belt
hermes birkin
hermes outlet
juicy couture outlet
kate spade outlet
mbt shoes
michael kors outlet
mizuno running
moncler coats
mulberry outlet
soccer shoes
nike outlet store
the north face outlet
oakley sunglasses
ray ban sunglasses
stuart weitzman boots
surpa sneakers
north face outlet
the north face clearance
the north face jackets
the north face outlet store
north face jackets
the north face uk
tommy hilfiger outlet
tory burch outlet
true religion jeans
vans shoes
ysl outlet

Meiqing Xu said...

louis vuitton
louis vuitton
fitflop footwear
oakley store
kate spade outlet
ralph lauren outlet
ray ban sunglasses
jordan 8 playoffs
oakley vault
toms outlet
jordan concord 11s
michael kors outlet online
chanel bags
christian louboutin outlet
coach outlet
fitflops clearance
louis vuitton outlet
coach outlet
coach outlet store online
marc jacobs handbags
toms promo code
oakley sunglasses wholesale
lebron james basketball shoes
jeremy scott shoes
oakley sunglasses
abercrombie outlet
louis vuitton
discount oakley sunglasses
christian louboutin outlet
michael kors uk
ray ban wayfarer
concords 11
kd shoes
kate spade handbags
pandora charms
abercrombie & fitch

Wenhao Guo said...

ddddd0925fred perry polo,
coach outlet online,coach purses,coach handbags,coach bags,coach handbags sale,coach handbags outlet
hollister,hollister canada,abercrombie and fitch,abercrombie,abercrombie fitch,abercrombie kids,a&f
nike air foamposite one,foamposite,foamposites,foamposite release 2015,foamposite sneakers,foamposites for sale,foamposite gold
ugg boots,
links of london uk,
louis vuitton outlet online,
rolex watches,rolex,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex
ralph lauren,ralph lauren uk,ralph lauren outlet,ralph lauren outlet online,polo ralph lauren outlet,ralph lauren polo
dansko clogs,
kobe bryants shoes 2015,
michael kors outlet store,
monster beats,
san antonio spurs,
kobe bryant store,
nfl jerseys wholesale,
new york knicks,
chanel handbags,

mao qiuyun said...

chanel handbags,
the north face jackets,
canada goose outlet,
the north face outlet store,
ugg boots,
oakley sunglasses,
hermes bags,
oakley sunglasses,
vans shoes,
coach outlet store,
coach outlet canada,
coach outlet,
the north face uk,
nike air max uk,
ray ban sunglasses,
kobe shoes,
nike free,
tory burch outlet,
ugg boots,
designer handbags,
cheap wedding dresses,
michael kors outlet,
air jordan 4,
the north face outlet,
soccer jerseys,
air max 90,
swarovski jewelry,
ralph lauren uk,