title: Removing boilerplate code
body: <p>I want to remove some boilerplate code from my android app. In order to do so I moved each function in a class which extends Application and made them static so that I can call them upon the class. My problem i that some functions use <code>startActivity()</code> or <code>getSystemService()</code>
  and I cannot make a static reference to them. Is there any way to overcome this? What I thought is make another class and create an object each time I want to use a method but I would rather not go that way.
  Thank you for your time</p>