using of intent for linking activities
<p>I want to link my two activites by clicking on a button i have written the following code</p>

<pre><code>public class IHBCAPTUREActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    ImageView iv;
    TextView tx;
    Button b1;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        iv=(ImageView)findViewById(R.id.imageView1);
        tx=(TextView)findViewById(R.id.textView1);
       b1 = (Button) findViewById(R.id.button1);
       b1.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        Intent calIntent;
        **calIntent = new Intent(IHBCAPTUREActivity.this, LoginActivity.class);**
        startActivity(calIntent);           
    }
}
</code></pre>

<p>error cumes in this line </p>

<pre><code>calIntent = new Intent(IHBCAPTUREActivity.this, LoginActivity.class);
</code></pre>

<p>for <code>LoginActivity.class</code> that</p>

<p><code>LoginActivity cannot be resolved to a type</code> . How to solve it?</p>
