I am a novice but I have already read What is callback in Android and How to define callbacks in Android.
I think that I got the point in this kind of examples:
button.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick (View v){
// my code
}
});
In many books I have found that methods used for managing the life cycle of the Activity (such as protected void onCreate(Bundle savedInstanceState)) are defined as Callback Methods.
Why onCreate() is a Callback Method? Which is the function passed as an argument?
I have a Bundle as an argument, I don't see any Interface or function used as an argument.