title: Unable to start service Intent { flg=0x4 cmp=com.UserLogin/.BgService (has extras) }: not found
body: <p>I'm trying to start a service using Alarmmanager with pendingIntent. I stuck with <code>Unable to start service Intent { flg=0x4 cmp=com.UserLogin/.BgService (has extras) }: not found</code>
   error i've googled and searched in stackoverflow seen some questions about this error but those solutions are not worked with me. <a href="https://stackoverflow.com/questions/2265020/why-doesnt-my-service-work-in-android-i-just-want-to-log-something-ever-5-sec">StackoverFlow</a>, <a href="https://stackoverflow.com/questions/6052978/unable-to-start-service-intent">enter link description here</a>, Please check this once.</p>
  
  <p>Service Class:</p>
  
  <pre><code>public class BgService extends Service {
  
      @Override
      public IBinder onBind(Intent intent) {
          // TODO Auto-generated method stub
          return null;
      }
      @Override
      public void onCreate() {
          // TODO Auto-generated method stub
          super.onCreate();
      }
      @Override
      public void onStart(Intent intent, int startId) {
          // TODO Auto-generated method stub
  System.out.println("OnStart");
          super.onStart(intent, startId);
  
      }
      @Override
      public int onStartCommand(Intent intent, int flags, int startId) {
          // TODO Auto-generated method stub
  System.out.println("OnStartcmd");
         return super.onStartCommand(intent, flags, 10);
      }
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>    &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.UserLogin"
      android:versionCode="1"
      android:versionName="1.0" &gt;
      &lt;application&gt;&lt;/application&gt;
      &lt;service android:name="com.UserLogin.BgService" /&gt;
      &lt;uses-library android:name="com.google.android.maps" /&gt;
      &lt;uses-library android:name="com.google.android.maps" /&gt;
  
      &lt;activity
          android:configChanges="orientation|keyboardHidden"
          android:name="com.UserLogin.MyActivity" /&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.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;&lt;/manifest&gt;
  </code></pre>
  
  <p>java class</p>
  
  <pre><code> Intent myIn1tent = new Intent(UserLogin.this, BgService.class);
   pendingIntent = PendingIntent.getService(UserLogin.this, 0, myIn1tent , 0);
   AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
   long firstTime = SystemClock.elapsedRealtime();
   alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, 30 * 1000, pendingIntent);
  </code></pre>
  
  <p>Logcat Error:</p>
  
  <pre><code>03-29 14:30:47.337: W/ActivityManager(58): Unable to start service Intent { flg=0x4 cmp=com.UserLogin/.BgService (has extras) }: not found
  </code></pre>