title: Android Wear custom notification not showing activity
body: <p>I'm working on a custom notification for Android Wear that should display a custom activity when the notification is swiped upwards. The notification is displayed, and even the wearable features (like the background and custom size) are visible, however the activity is never loaded nor displayed.</p>
  
  <p>Also, <code>MainActivity</code> and <code>PlaybackNotificationActivity</code> should both write a message to the log when they're created. <code>MainActivity</code> writes the message, but the latter doesn't.</p>
  
  <p>What could be the problem?</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          new NotificationBuilder(this).showNotification();
          Log.e("MainActivity", "Reached");
          finish();
      }
  }
  </code></pre>
  
  <p><strong>NotificationBuilder.java</strong></p>
  
  <pre><code>public class NotificationBuilder {
      private final Context mContext;
  
      public NotificationBuilder(Context context) {
          mContext = context;
      }
  
      public Notification buildNotification() {
          Notification.Builder builder = new Notification.Builder(mContext)
                  .setContentTitle("Title")
                  .setContentText("Content text")
                  .setSmallIcon(R.mipmap.ic_launcher);
  
          Intent playbackIntent = new Intent(mContext, PlaybackNotificationActivity.class);
  
          PendingIntent playbackPendingIntent = PendingIntent.getActivity(
                  mContext, 0, playbackIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  
          Notification.WearableExtender extender = new Notification.WearableExtender()
                  .setBackground(BitmapFactory.decodeResource(mContext.getResources(), R.mipmap.ic_launcher))
                  .setCustomSizePreset(Notification.WearableExtender.SIZE_MEDIUM)
                  .setDisplayIntent(playbackPendingIntent);
  
          builder.extend(extender);
  
          return builder.build();
      }
  
      public void showNotification() {
          Notification notification = buildNotification();
  
          NotificationManager manager = (NotificationManager)
                  mContext.getSystemService(Context.NOTIFICATION_SERVICE);
  
          manager.notify(1, notification);
      }
  }
  </code></pre>
  
  <p><strong>PlaybackNotificationActivity.java</strong></p>
  
  <pre><code>public class PlaybackNotificationActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_playback_notification);
  
          Log.e("NotificationActivity", "Reached");
          Toast.makeText(this,  "Toast", Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>