ytba92 ytba92 - 4 months ago 20
Java Question

error: method does not override or implement a method from a supertype

I have this piece of code:



@
Override
protected void onPreEcecute() {

progress = ProgressDialog.show(MainActivity.this, null, "Loading apps info...");
super.onPreExecute();





I'm a noob when it comes to Android so i you can just kindly explain to me what my error means that would be great thank you


Error:(142, 10) error: method does not override or implement a method
from a supertype


I got the code from a video on Youtube and it works perfectly there. Why does it not work here? if you need extra code for me to post please let me know

Answer

In AsyncTask class Is not onPreEcecute() you have a mispelling error is, the function that you should override is onPreExecute()

Comments