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
Post a Comment