Questions tagged [taskstackbuilder]

Utility class for constructing synthetic back stacks for cross-task navigation on Android 3.0 and newer.

TaskStackBuilder provides a backward-compatible way to obey the correct conventions around cross-task navigation on the device's version of the platform. On devices running Android 3.0 or newer, calls to the startActivities() method or sending the PendingIntent generated by getPendingIntent(int, int) will construct the synthetic back stack as prescribed. On devices running older versions of the platform, these same calls will invoke the topmost activity in the supplied stack, ignoring the rest of the synthetic stack and allowing the back key to navigate back to the previous task.

35 questions
0
votes
1 answer

Push notification click using TaskStackBuilder

I'm setting an activity, Receiver, as the content intent for a notification. Intent clickIntent = new Intent(context, Receiver.class); mBuilder.setContentIntent(PendingIntent.getActivity(context, 0, clickIntent,…
madhu
  • 744
  • 3
  • 8
  • 19
0
votes
1 answer

Android navigation up about notification with TaskStackBuilder

I want to start the "ChatActivity" of my app by click Notification, and when i click back button, we will go to the "MainActivity" of my app. I write my code as the Android Notification Guide. My code is follow. NotificationManager manager =…
0
votes
1 answer

How do I get rid of errors using TaskStackBuilder on Android Studio?

I am making an app on Android studio. My app makes a bluetooth connection to an RFDuino microcontroller board. I want to add in a notification that will notify the user when they lose bluetooth signal. I want the notification to use vibration…
0
votes
1 answer

Android - TaskStackBuilder .addParentStack make my app not responding

So my app will stop responding soon after the addParentStack() get executed, and there will be a pop up that said app isnt responding, choose to wait or close it, soon I close it, it will show me the previous activity right before the crash or not…
0
votes
0 answers

Intent.FLAG_ACTIVITY_NEW_TASK still bundles activities in the same task

I have a starting\home activity that is first launched. In another flow I wrote a broadcast receiver that is triggered by the dialer. The later shows an transparent activity with popup-fragment on it. @Override protected void…
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
1 2
3