passing button id in android
<p>Here is my code:</p>

<pre><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
        }
    }
};
</code></pre>

<p>Can I pass button id to function makenewProfile from class login_profile?</p>
