title: taskstackbuilder for api 14
body: <p>My compiler show this message...</p>
  
  <blockquote>
    <p>Call required API level 16 (current min is 14)</p>
  </blockquote>
  
  <p>The question is.. <strong>"Is this code is okay to run in api 14 or not??"</strong>
  because I have no device to test this API version since AVD doesn't have GPS (Requirement)
  Do I have to implement support library or not??</p>
  
  <p><strong>NOTE</strong></p>
  
  <p>It works perfectly on API 16 and above</p>
  
  <p><strong>TaskStackBuilder</strong></p>
  
  <pre><code>    PendingIntent contentIntent = TaskStackBuilder.create(this)
              // add all of DetailsActivity's parents to the stack,
              // followed by DetailsActivity itself
              .addParentStack(Activity_TrackingMode.class)
              .addNextIntent(new Intent(this, Activity_TrackingMode.class))
              .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
  </code></pre>
  
  <p><strong>AndroidManifest</strong></p>
  
  <pre><code>    &lt;activity android:name=".Activity_TrackingMode"
                android:label="@string/app_name"
                android:screenOrientation="portrait"
                android:parentActivityName=".Activity_Screen1"&gt;
          &lt;!-- Parent activity meta-data to support 4.0 and lower --&gt;
          &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value=".Activity_Screen1" /&gt;
          &lt;intent-filter&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>