title: Service cannot be resolved to a type
body: <p>This is driving me nuts because the answer is probably staring me in the face.   I'm trying to learn to make a simple service in Android using the example in <a href="http://marakana.com/forums/android/examples/60.html" rel="nofollow">http://marakana.com/forums/android/examples/60.html</a>
  But where I try to start my service</p>
  
  <pre><code>        startService(new Intent(this, MyService.class));
  </code></pre>
  
  <p>I get "MyService cannot be resolved to a type" at build-time.</p>
  
  <p>The example has this line in the Manifest just after the close of activity and before the close of application . . . </p>
  
  <pre><code>&lt;service android:enabled="true" android:name=".MyService" /&gt;
  </code></pre>
  
  <p>... but I've also tried it without the "." and with a fully qualified package name, i.e., test.bg.MyService, with no improvement.  </p>
  
  <p>Any idea why it can't resolve it?</p>