progressdialog - How to display Progressbar in Android Application Class? -


dear folks, running difficulty trying display progresdialog android class extends application. doing

context=getapplicationcontext(); dialog=progressdialog.show(context, "status", "downloading master"); 

but throws me following exception

unable add window -- token null not application

please me out

try this,

just use youractvity.this instead of context.

progressdialog dialog=progressdialog.show(youractvity.this, "status", "downloading master"); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -