title: "Activity not found" in Android
body: <p>I am using the <code>navigation-drawer</code> template in eclipse to do a simple Android application. 
  I have some trouble with fragment. 
  I declared a fragment called PresenceLog Fragment in manifest but when I called it in <code>MainActivity</code>, the log still says that </p>
  
  <pre><code>03-23 13:54:50.817: E/AndroidRuntime(16750): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.singtel.ricecooker/com.singtel.ricecooker.PresenceLogFragment}; have you declared this activity in your AndroidManifest.xml?
  </code></pre>
  
  <p>Here is my manifest 
      
      </p>
  
  <p>Here is my fragment class </p>
  
  <pre><code>public class PresenceLogFragment extends Fragment{
  private TextView myText = null;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
      return inflater.inflate(R.layout.presence_log, null);
  }
  
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
  
      ArrayList&lt;String&gt; userList = null;
      RiceServerRequest newRequest = new RiceServerRequest();
      //newRequest.getRequestInfo(this);
  
  }
  
  public void updateUserList(ArrayList&lt;String&gt; userList){
      LinearLayout lView = (LinearLayout) getView().findViewById (R.layout.presence_log);
      //LinearLayout ll = (LinearLayout)fragment.getView().findViewById(R.id.commentFragmentLayout);
  
      for (int i = 0; i &lt; userList.size();i++){
          myText = new TextView(getActivity());
          myText.setText(userList.get(i));
          lView.addView(myText);
      }
      //setContentView(lView);
  }
  </code></pre>
  
  <p>Here is my MainActivity </p>
  
  <pre><code>private void launchPresenceLog(){
      Intent intent = new Intent(this,PresenceLogFragment.class);
      startActivity(intent);
  }
  </code></pre>
  
  <p>It would be great if you know what is wrong with my code. Also, since I am new to Android programming, I would appreciate it if you could suggest some online courses. </p>