Just declare a Context parameter in the constructor of the class. Then you can pass in this when the main activity instance this class.
Android's strategy for calling main activity methods in other classes.
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325574019&siteId=291194637
Recommended
Ranking