title: Cursor cur = getall();
body: <p>The following code views all of the records in the database.  </p>
  
  <pre><code>Cursor cur = db.getall(); 
  
  adapter = new RRSelectTrackActivity.MyAdapter(this, cur, this, this);
  
  public MyAdapter(Context context, Cursor c, OnClickListener btnOnClick,OnCheckedChangeListener chkOnChange) {
      super(context, R.layout.list_item, c );
      this.btnOnClick = btnOnClick;
      this.chkOnChange = chkOnChange;
  } 
  </code></pre>
  
  <p>I only need to view the first three records.  How can I modify this code for that purpose? </p>