Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Eliminar Activities da pilha



Em sexta-feira, 24 de maio de 2013 23h22min25s UTC-3, Gink Labrev escreveu:

Pessoal,

Ao chamar a Activity B, preciso eliminar todas existente na pilha, ficando somente esta.

Então faço o seguinte:

Intent intent = new Intent(A.this, B.class);
intent.addFlags(
    Intent.FLAG_ACTIVITY_CLEAR_TOP |
    Intent.FLAG_ACTIVITY_SINGLE_TOP |
    Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

Mas ainda assim não funciona.
Alguém sabe o que ocorre ?

Abs,

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário