title: FindViewById in a class type Service?
body: <p>I'm working with the sample media player given by the android sdk. MainActivity starts Service MusicService with <code>startService(new Intent(MusicService.ACTION_PLAY))</code>. </p>
  
  <p>I need to find a view by ID inside the Service but I don't know how to do it: </p>
  
  <pre><code>    findViewById(R.id.playbutton).setVisibility(View.GONE);
  </code></pre>
  
  <p>I've found some similar questions but none provide a simple solution (the most similar question's accepted answer is actually "no you can't" and I'm sure it's possible). How can I make this line work inside the Service? Do I have to pass the context from MainActivity to it, how do I do it?</p>