title: Cant start a service from an Activity
body: <p>im working on my android app and I`m having a bit of a weird problem.
  im trying to run a service from the main activity and with no luck. no matter what i tries no log messages appears. i found out that when erase the service statement out of the manifest i get the "not found" message, but when return it - nada, the log is empty tough i try to print.</p>
  
  <p>i must say that i`v tried to look for the answer for weeks and read a bunch of solution to some similar problems but again with no luck on that matter.</p>
  
  <p>in the activity i do this:</p>
  
  <p><code>startService(new Intent(this,GpsCompassService.class));</code></p>
  
  <p>and in the service i do:</p>
  
  <p>`</p>
  
  <pre><code>public class GpsCompassService extends ManagerService{ 
  
      private static final String TAG = "GpsCompassServiceActivity";
  
      public void onCreate(Bundle savedInstanceState) {
          Log.i("GpsCompassService onCreate", null);      
      }
      //------------------------------------------------------------
      public void onResume(){
          Log.i("GpsCompassService has launched", null);;
  }`
  </code></pre>
  
  <p>the manifst.xml:
  `</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="project.main.app"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="10" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
      &lt;application android:name=".ManagerApplication" android:icon="@drawable/icon" android:label="@string/app_name" &gt;
          &lt;activity android:label="@string/app_name" android:name=".MenuActivity" &gt;
              &lt;intent-filter &gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:label="@string/app_name"  android:name="project.main.app.CameraPreviewActivity" &gt;
              &lt;intent-filter &gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
           &lt;service android:enabled="true" android:name="project.main.app.GpsCompassService"&gt; 
               &lt;intent-filter&gt; 
                   &lt;action android:name="project.main.app.GpsCompassService"&gt;&lt;/action&gt; 
               &lt;/intent-filter&gt; 
           &lt;/service&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>`</p>
  
  <p>what am i doing wrong?</p>
  
  <p>10x in advance!</p>
  
  <pre><code>package project.main.app;
  
  import android.app.Service;
  import android.content.Intent;
  import android.os.IBinder;
  
  public class ManagerService extends Service {
  
      public ManagerApplication getManagerApp(){
          ManagerApplication appSharedDate = (ManagerApplication)getApplication();
          return appSharedDate;
      }
  
      @Override
      public IBinder onBind(Intent intent) {
          return null;
      }
  
  }
  </code></pre>
  
  <p>here is the logcat file:</p>
  
  <pre><code>01-07 20:19:29.281: E/AndroidRuntime(557): FATAL EXCEPTION: main
  01-07 20:19:29.281: E/AndroidRuntime(557): java.lang.RuntimeException: Unable to create service project.main.app.GpsCompassService: java.lang.NullPointerException: println needs a message
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.app.ActivityThread.handleCreateService(ActivityThread.java:1955)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.app.ActivityThread.access$2500(ActivityThread.java:117)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:985)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.os.Handler.dispatchMessage(Handler.java:99)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.os.Looper.loop(Looper.java:130)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.app.ActivityThread.main(ActivityThread.java:3683)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at java.lang.reflect.Method.invokeNative(Native Method)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at java.lang.reflect.Method.invoke(Method.java:507)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at dalvik.system.NativeStart.main(Native Method)
  01-07 20:19:29.281: E/AndroidRuntime(557): Caused by: java.lang.NullPointerException: println needs a message
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.util.Log.println_native(Native Method)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.util.Log.i(Log.java:158)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at project.main.app.GpsCompassService.onCreate(GpsCompassService.java:32)
  01-07 20:19:29.281: E/AndroidRuntime(557):  at android.app.ActivityThread.handleCreateService(ActivityThread.java:1945)
  </code></pre>