Passing number from 1st activity to the number picker
This is my 1st activity public void onClick(View v) { switch (v.getId()) { case R.id.setButton: int cpv= carbPValue; int ppv = proteinPValue; int fpv=fatPValue; Intent intent = new Intent ( this, AdjustMacronutrients.class ); intent.putExtra ( "carbP", cpv ); intent.putExtra ( "proteinP", ppv ); intent.putExtra ( "fatP", fpv ); startActivity(intent); finish(); } } This is my 2nd activity : I have 3 integer value pass from 1st activity which is cpv , ppv , fpv . How can i set those value inside the number picker as default, before user pick the number. And show the number in the TextView after