Taskstackbuilder for api 14
My compiler is showing this message ...
Requires API API level 16 (current minimum is 14)
Question: "Does this code work fine in api 14 or not?" because I don't have a device to test this version of the API, because the AVD has no GPS (Requirement) Should I implement a support library or not?
Note
It works fine on API 16 and up
TaskStackBuilder
PendingIntent contentIntent = TaskStackBuilder.create(this)
// add all of DetailsActivity 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);
AndroidManifest
<activity android:name=".Activity_TrackingMode"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:parentActivityName=".Activity_Screen1">
<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activity_Screen1" />
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
+3
source to share
1 answer
You must use android.support.v4.app.TaskStackBuider
http://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.html
to run on API 14
+10
source to share