I have an interface which has a OnTaskComplete
which takes in a string method and within my class I have
public class JSONActivity extends Activity implements OnRetrieveHttpData
OnRetrieveHttpData
being my interface however when I try to override it, it comes back with an error saying
The method onTaskCompleted(String)
of type JSONActivity
must override a superclass method
here is the code within my class
public class JSONActivity extends Activity implements OnRetrieveHttpData {
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_json);
}
@Override
public void onTaskCompleted(String twitterData) {
// TODO Auto-generated method stub
}
}
and here is my code within the interface
public interface OnRetrieveHttpData {
void onTaskCompleted(String twitterData);
}