I have a very simple problem. I have a invisible button in my Main Activity, and I have a second Activity that makes that button visible. In the second activity I don´t have a p
Try this code in onResume() of your MainActivity:
onResume()
try { if(getIntent().getExtras().containsKey("your_parameter")) { btn.setVisibility(View.VISIBLE); } } catch(Exception e){ //... }
In second Activity put "your_parameter" parameter as extra to Intent only if you want to make that button visible.