There is an activity in which there is a method that updates the data in the ListView
.
There are many more methods in this method, these methods also contain some methods and variables. This method is called a number of times in this activation. But it took me one time to call him from another class. You can of course make all methods and public static
variables (which was done) and calmly call a method from another class without creating an instance, but this is not correct.
So, the question is: how can I call a method from another class?