intent.putExtra("cena_bolshaya", cena_bolshaya.getText().toString()); intent.putExtra("bludo", bludo.getText().toString()); 

There are two textviews, in one number in another text, when sending to another cena.setText(cena_bolshaya.getText().toString()+txtName); in cena.setText(cena_bolshaya.getText().toString()+txtName); from where the zero is taken from the front, where the text is, everything is ok. How to remove zero in the first?

  cena=(TextView)findViewById(R.id.textView_cena); bludo=(TextView)findViewById(R.id.textView_bludo); String txtName = getIntent().getStringExtra("cena_bolshaya"); String bludoName = getIntent().getStringExtra("bludo"); cena.setText(cena_bolshaya.getText().toString()+txtName); bludo.setText(bludo.getText().toString()+bludoName); 
  • one
    cena.setText (txtName); maybe like this after all? - Android Android
  • thanks It works. - Romik romikromik pm

0