Office Hours — Today, March 19

Thursday, March 17

Mark M.
has entered the room
Mark M.
turned on guest access
Mar 19
9:25 AM
yacire.elrhomari@gmail.com
has entered the room
Mark M.
hello, Yacire!
how can I help you today?
yacire.elrhomari@gmail.com
Hi Mark
i have a question about Intent and pendingIntent
i launch an activity with a pendingIntent and AlarmManager and it works very well
9:30 AM
yacire.elrhomari@gmail.com
but when my activity finnish (with finnish() method) i have the previous Activity but i want to see the Android desktop
Mark M.
your PendingIntent is creating a new instance of the activity
that is going into the same task as some earlier instance of the activity
depending on what you want, either launch the second instance into a separate task, or use Intent flags/manifest entries to not create a second instance of the activity, but instead bring the first instance back to the foreground
you will see material on this in the chapter on tasks in the book
(the chapter begins on page 1791 of Version 7.1, for example)
yacire.elrhomari@gmail.com
Thank you very much Mark i will see this chapter, bye
9:35 AM
yacire.elrhomari@gmail.com
has left the room
10:00 AM
Mark M.
turned off guest access

Thursday, March 17

 

Office Hours

People in this transcript

  • Mark Murphy
  • yacire.elrhomari@gmail.com