How to solve this intent Error ?
<p>I Wrote the Following code : </p>

<pre><code>package com.aamir.cool;

import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        ImageView img = (ImageView)findViewById(R.id.facebook);
img.setOnClickListener(new View.OnClickListener(){
    public void onClick(View v){
        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_VIEW);
        intent.addCategory(Intent.CATEGORY_BROWSABLE);
        intent.setData(Uri.parse("http://www.facebook.com/exandrok?ref=tn_tnmn"));
        startActivity(intent);
    }
});
    }
}
</code></pre>

<p>I am getting error "Unknown Entity Intent" , "Unknown type of variable intent" .
How to Solve these Error ?</p>
