title: Service doesn't show Logs
body: <p><strong>Question</strong></p>
  
  <hr>
  
  <p>I got a little problem to see what happens in my Service. I don't get any logs of it. So first I thought I probably don't start my Service, but this isn't the problem. When I go to Running-Apps on my Device the Service is listed up there.</p>
  
  <p>Now lets take a look at the Code:</p>
  
  <p>Manifest.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="de.ivocore"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="14" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" 
          android:theme="@style/Theme.IVOCore"
          android:debuggable="true"&gt;
  
          &lt;service android:name=".service.DataHandlerService" /&gt;
            &lt;!--    android:enabled="true"
              android:icon="@drawable/ic_launcher"/&gt;
  
          android:process=":DataHandler" --&gt;
  
          &lt;activity
              android:label="@string/app_name"
              android:name=".LoginActivity" &gt;
              &lt;intent-filter &gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;action android:name="de.ivocore.LOGINCHECK"/&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity 
              android:name=".MainActivity"&gt;&lt;/activity&gt;    
  
      &lt;/application&gt;
  
  
          &lt;!-- Definieren welche Permission's die Applikation besitzt --&gt;
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>MainActivity.class</p>
  
  <p>I start the Service here in my onCreate().</p>
  
  <pre><code>package de.ivocore;
  
  import de.ivocore.service.DataHandlerService;
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuInflater;
  
  public class MainActivity extends Activity {
  
      private final String LOAD_ORDER = "de.ivocore.MainActivity.LOAD_ORDER";
  
      //Verschiedene Integer definieren für Switch/Case damit der Service weis was zu tun ist
      int FIRST_LOAD = 0; //Wird gesendet beim onCreate der Activity
      int RELOAD = 1; //Wird gesendet wenn der User einen reload möchte
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          //Service starten zusätlich wird folgender Parameter mitgegeben "onstart" 
          //dies zeigt dem Service das die Activity gerade gestartet wurde.
          Intent i = new Intent(this, DataHandlerService.class);
          i.putExtra(LOAD_ORDER, FIRST_LOAD);
          startService(i);
      }
  
  
  
      public void onReceive(Intent intent){
  
      }
  }
  </code></pre>
  
  <p>DataHandlerService.class</p>
  
  <p>Here i catch the Intent over onStartCommand(), which probably dosn't work. But I don't get whats wrong there...</p>
  
  <pre><code>public class DataHandlerService extends Service {
      private AlarmManager alarmManager;
      private Calendar calendar;
      private static final int PERIOD = 60000 * 60; // 1h
      private final String LOAD_VIDEO = "de.ivocore.service.DataHandlerService.LOAD_VIDEO";
      private final String LOAD_ORDER = "de.ivocore.MainActivity.LOAD_ORDER";
  
      LoginAdapter mDbHelper = new LoginAdapter(this);
  
      @Override
      public IBinder onBind(Intent intent) {
          // TODO Auto-generated method stub
          return null;
      }
  
  
      public void onStartCommand(Intent intent, int flags, String startID){
          int load = intent.getIntExtra(LOAD_ORDER, 0);
          Log.d("DataHandlerService",  "Activity startet mit folgendem Parameter ="+load);
  
          switch (load){
          case 0:
              Log.d("DataHandlerService", "Es wird def OfficeTimerOnStart gestartet");
              checkOfficeTimeOnStart();
          break;
          case 1:
              getOrders();
          break;
          }
  
  
  
      }
  
      public void onDestroy(){
          stopSelf();
      }
  }
  </code></pre>
  
  <hr>
  
  <p>Please tell me what I'm doing wrong, that I can see my Logs!</p>
  
  <p>Thank you in Advance.</p>
  
  <p>Best Regards</p>
  
  <p>safari</p>