How to see that a method is called by which methods in the system?

searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
            @Override
            public boolean onQueryTextSubmit(String query) {
                //
                Toast.makeText(MainActivity.this, query, Toast.LENGTH_SHORT).show();
                return true;
            }

            @Override
            public boolean onQueryTextChange(String newText) {
                //
                Toast.makeText(MainActivity.this, newText, Toast.LENGTH_SHORT).show();
                return true;
            }
});

similar to the above, for example, I want to see which methods are called by the onQueryTextSubmit () method of the SearchView.OnQueryTextListener interface, and is there any way? What is certain is that the system must pass in String query,. So where did this string come from? In the course of learning, the problem I often encounter is that there are many such cases in these classes of the system, that is, how does the process of passing parameters in the system come from? What is the principle? Does the system call these methods and pass parameters or something? Please answer your questions.

Mar.30,2021

break point, look at the call stack.


this is a very simple observer mode. You can search for this method directly in android studio, usually with multiple calls or only one.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c76a-2c323.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c76a-2c323.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?