I'm trying to pass parameters a value from one screen to another, but in the other it gets null, see:
Screen 1:
Intent telaWeb = new Intent(SegmentoView.this, ViewWeb.class);
Bundle bundleParametro = new Bundle();
telaWeb.putExtras(bundleParametro);
bundleParametro.putString("link", urlStr);
startActivity(telaWeb);
Screen 2:
Intent dadosRecebidos = getIntent();
if(dadosRecebidos != null){
Bundle parRecebidos = dadosRecebidos.getExtras();
if(parRecebidos != null) {
URL = parRecebidos.getString("link");
}
}
However, the value is null. What's wrong?