title: Unable to start service Intent: not found
body: <p>I've the same issue described <a href="https://stackoverflow.com/questions/3439356/unable-to-start-service-intent/19105337#19105337">here</a> but i can't understand whats wrong.</p>
  
  <p><strong>My issue is:</strong> Unable to start service Intent { act=.connections.MoodyService } U=0: not found</p>
  
  <p><strong>EDIT</strong>
  <strong>I've changed my package from connections to service in the source code, sorry for the confusion</strong></p>
  
  <p><strong>My manifest.xml</strong></p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.moody"
  android:installLocation="auto"
  android:versionCode="0"
  android:versionName="0.6.7 alpha" &gt;
  
  &lt;uses-sdk
      android:maxSdkVersion="18"
      android:minSdkVersion="14"
      android:targetSdkVersion="17" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:allowClearUserData="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="activities.MainActivity"
          android:label="@string/app_name" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="activities.Menu_esq"
          android:label="@string/title_activity_menu_esq" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="activities.BaseActivity"
          android:label="@string/title_activity_base" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="activities.MainView"
          android:label="@string/title_activity_main_view" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="activities.LoginActivity"
          android:label="@string/app_name"
          android:noHistory="true"
          android:windowSoftInputMode="adjustResize|stateVisible" &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:name="com.example.moody.LeftActivity"
          android:label="@string/title_activity_left" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.moody.RightActivity"
          android:label="@string/title_activity_right" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="activities.UserDetailsActivity"
          android:label="@string/title_activity_user_details" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="fragments.TopicsPreview"
          android:label="@string/title_activity_copy_of_topics_preview" &gt;
      &lt;/activity&gt;
      &lt;activity android:name="activities.Loading" &gt;
      &lt;/activity&gt;
  
      &lt;service
          android:name=".service.MoodyService"
          android:icon="@drawable/ic_launcher"
          android:label="@string/moody_service" &gt;
      &lt;/service&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>service is the package and MoodyService is the class name</strong></p>
  
  <p><strong>My service class</strong></p>
  
  <pre><code>public class MoodyService extends Service {
  
  public MoodyService() {
      // TODO Auto-generated constructor stub
  }
  
  private boolean isRunning = false;
  Object getContent;
  
  @Override
  public IBinder onBind(Intent intent) {
      // TODO Auto-generated method stub
  
      return null;
  }
  
  @Override
  public void onCreate() {
      super.onCreate();
  }
  
  @Override
  public int onStartCommand(Intent intent, int flags, int startId) {
      super.onStartCommand(intent, flags, startId);
  
      // Announcement about starting
      Toast.makeText(this, "Starting the Demo Service", Toast.LENGTH_SHORT)
              .show();
  
      // Start a Background thread
      isRunning = true;
      Thread backgroundThread = new Thread(new BackgroundThread());
      backgroundThread.start();
  
      // We want this service to continue running until it is explicitly
      // stopped, so return sticky.
      return START_STICKY;
  }
  
  @Override
  public void onDestroy() {
      super.onDestroy();
  
      // Stop the Background thread
      isRunning = false;
  
      // Announcement about stopping
      Toast.makeText(this, "Stopping the Demo Service", Toast.LENGTH_SHORT)
              .show();
  }
  
  private class BackgroundThread implements Runnable {
      int counter = 0;
  
      public void run() {
          try {
              counter = 0;
              while (isRunning) {
                  System.out.println("" + counter++);
                  new Contents().getAll(getResources(),
                          getApplicationContext());
                  Thread.currentThread().sleep(5000);
              }
  
              System.out.println("Background Thread is finished.........");
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p><strong>And in my main Intent.</strong></p>
  
  <pre><code>Intent start = new Intent(".service.MoodyService");
          this.startService(start);
  </code></pre>
  
  <p><strong>and also tried</strong></p>
  
  <pre><code>Intent intent = new Intent(this, MoodyService.class);
          this.startService(intent);
  </code></pre>
  
  <p><strong>and tried with the full path</strong></p>
  
  <pre><code>&lt;service
      android:name="com.example.moody.service.MoodyService"
      android:icon="@drawable/ic_launcher"
      android:label="@string/moody_service" &gt;
  </code></pre>