title: OnServiceConnected not getting called
body: <p>I referred to the following questions already but could not find an answer:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/6008601/cant-get-service-object-onserviceconnected-never-called">Can&#39;t get service object (onServiceConnected never called)</a>,</li>
  <li><a href="https://stackoverflow.com/questions/11844920/onserviceconnected-not-getting-called-getting-a-null-pointer-exception">onServiceConnected not getting called , getting a null pointer exception</a>, and </li>
  <li><a href="https://stackoverflow.com/questions/2486692/onserviceconnected-never-called-after-bindservice-method">onServiceConnected never called after bindService method</a></li>
  </ul>
  
  <p>Here is my code:</p>
  
  <pre><code>@Override
      public void onStart() {
          super.onStart();
          Context context = getApplicationContext();
          Intent intent = new Intent(context, PodService.class);
          context.bindService(intent, mPodServiceConn, Context.BIND_AUTO_CREATE);
  
      }
  
  
  
  
      private ServiceConnection mPodServiceConn = new ServiceConnection() {
                  @Override
                  public void onServiceConnected(ComponentName className, IBinder service) {
                      Log.e(TAG, "Pod: Service Connected");
                    mPodService = IPodService.Stub.asInterface(service); //here i am getting NullPointerException
                  }
          }
  </code></pre>
  
  <p>and My service class contains nothing, only this much, i have shown it bellow</p>
  
  <pre><code>public class PodService extends Service {
  @Override
      public IBinder onBind(Intent intent) {
          // TODO Auto-generated method stub
          Log.d("bound", "bound");
          return null;
      }
  
   static class PodSeviceStub extends IPodService.Stub {
  
  //here i implemented unimplemented methods
  
      }
  }
  </code></pre>
  
  <p>But in lolcat i am getting only "<code>bound</code>" message from onBind() function, but not printing "<code>Pod: Service Connected</code>", means service is started successfully.
  and in lolcat i am getting <code>NullPointerException</code> and also mentioned in manifest file too.</p>