Android unexcpected error
<p>I am a beginner of Android and i need a bit hints and help. I am using following code</p>

<pre><code>   public class WifiHotSpotActivity extends Activity {

    private Button adnew = null; 


  @Override
       public void onCreate(Bundle savedInstanceState)
       {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
           init();

        adnew = (Button) findViewById(R.id.addNewBtn);

        adnew.setOnClickListener(new View.OnClickListener() 
     {
     public void onClick(View v)
     {
      Intent myIntent = new Intent(v.getContext(), addNew.class);
               startActivityForResult(myIntent, 0);
        }
    });
   }
</code></pre>

<p>The error i am receiving is </p>

<pre><code> android.content.ActivityNotFoundException: Unable to find explicit activity class {com.kahaf.wifiHotSpot/com.kahaf.wifiHotSpot.addNew}; have you declared this activity in your AndroidManifest.xml?
</code></pre>

<p>if anyone can tell me what is the problem.</p>
