How can I add methods that I often use to android studio?

Viewed 109

For example,

public void show_message(String message){
    Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
}

I want this method add auto Activity.java when create new activity or java class.

I want to save different methods like this and include it in the my project quickly where it is needed.

4 Answers
Related