title: Trouble using cardslib with existing Eclipse Android project
body: <p>I'm trying to use <a href="https://github.com/gabrielemariotti/cardslib" rel="nofollow">this card library</a> for the UI of the Android app I'm trying to build, but I'm running into some problems.</p>
  
  <p>The author <a href="https://github.com/gabrielemariotti/cardslib/blob/master/doc/BUILD.md#reference-this-project-as-a-library-in-eclipse" rel="nofollow">has this guide for using the library with an existing Eclipse project</a> which I've followed throughly, but I'm getting multiple errors.</p>
  
  <p>I'm importing the library as an "Existing project" under the Import options in Eclipse, and including the project in my existing project's build path, but I keep getting errors regarding missing methods (specifically the <code>getContext()</code> argument specified in the <a href="https://github.com/gabrielemariotti/cardslib/blob/master/doc/GUIDE.md#quick-usage" rel="nofollow">constructor</a>), even after importing the entire library.</p>
  
  <p>Here is a snippet of my code:</p>
  
  <pre><code>import it.gmariotti.cardslib.library.internal.Card;
  import it.gmariotti.cardslib.library.internal.CardHeader;
  
  public class MainActivity extends Activity {
  
      Card card = new Card(getContext());
  
      CardHeader header = new CardHeader(getContext());
  
      card.addCardHeader(header);
  
      CardView cardView = (CardView) getActivity().findViewById(R.id.carddemo);
  
      cardView.setCard(card);
  </code></pre>
  
  <p>I get the following errors for each respective line in my code snippet:</p>
  
  <pre><code>The method getContext() is undefined for the type MainActivity
  
  The method getContext() is undefined for the type MainActivity
  
  Multiple markers at this line
      - Syntax error on token(s), misplaced construct(s)
      - Syntax error on token "header", VariableDeclaratorId expected after 
  
  Multiple markers at this line
      - CardView cannot be resolved to a type
      - CardView cannot be resolved to a type
      - The method getActivity() is undefined for the type 
       MainActivity
  
  Multiple markers at this line
      - Syntax error on token "card", VariableDeclaratorId expected after 
       this token
      - Syntax error on token(s), misplaced construct(s)
  </code></pre>
  
  <p>I know this is a very specific question, but I'm hoping I can get an answer here! </p>