iam trying to do upload thing iun background of my asynctask task...i want to show a message dialog telling the user that he has uploaded successfully which shud appear after my uploading...
i tried this in postexecute()
Suzzane Pinto wrote:no that is not possible getApplicationContext() doest wrk here......please some one help
If you are writing the above mentioned code in your question is within an activity then you can access the get Application Context method using the this keyword.
try this.getApplicationContext(). If the onPostExecute method is not within an Activity then you have to pass the context explicitly to your function.