Activity enters onPause only the first time it is called

0

I have an activity of RequestCad that calls a ProductCons, follows code to open ProductCons:

Intent intent = new Intent(PedidoCadActivity.this, ProdutoConsActivity.class);
 intent.putExtra("activity", "pedidoCad");
 startActivityForResult(intent, 2);

When I choose the item I want in the ProductCons activity, I click the button that executes this code:

setTotalItem();
setObjPedidoItens();
setDescPorcentagem();
setDescValor();
Bundle bundle = new Bundle();
bundle.putParcelable("objPedidoItem", objPedidoItem);
Intent i = new Intent();
i.putExtras(bundle);
setResult(1, i);
finish();

The problem is that when I finish ProductCons the second time to add the second product, it does not fall on onResume, it goes to onCreate, and the ListView that is added to the items is restarted every time I do not know why.     

asked by anonymous 28.12.2015 / 17:45

0 answers