hey i want to display a loading progress using ProgressDialog on my aplication, but i’m confuse where to place it… here is the ilustration of my code… the code to create a grayscale image…
public void but_gray(View v){
ProgressDialog prog = ProgressDialog.show(this, "", "tesLoading",true);
bmp = grayscale(bmp);
prog.dismiss;
}
That’s my code, but when i run the code, dose not show the progress dalog…
the but_gray is a function when i click the grayscale button…
bmp is a bitmap variabel..
grayscale() is a function thats create a grayscale image…
anyone can give me solution
just create asynctask like ,
then call this asynctask in your function like,
it will works fine…..