Here is my code:
private Button.OnClickListener gotologinpage3 = new Button.OnClickListener() {
public void onClick(View v) {
try {
Intent ii = new Intent(v.getContext(), login_profile.class);
startActivityForResult(ii,0);
}
catch (Exception e) {
e.printStackTrace();
// TODO: handle exception
}
}
};
Can I pass button id to function makenewProfile from class login_profile?