User talk:Prathmesh mahajan

Android Application Article

code to pass value from one activity to another

1 activty

Intent intent = new Intent(this,leave_apply.class); intent.putExtra("emp_id_number",lblid.getText.toString); intent.putExtra("user_name",lbluser.getText.toString); startActivity(intent);

2nd activity

userid = bundle.getString("emp_id_number"); username = bundle.getString("user_name"); lblemp_no.setText(userid); lbluser.setText(username);