title: How to import .java from another project AND package in android
body: <p>We're working on a project (Project A) in college that has to extend from a class that is another project (Project B), made years ago.
  This is working under Eclipse, and developing apps for android, so this is in fact Activities we're talking about.</p>
  
  <p>So far I've tried this:</p>
  
  <ul>
  <li>Adding project B on Project A's build path (In the Projects TAB)</li>
  <li>Importing, with full package name and .java name.</li>
  </ul>
  
  <p>The thing is that every solution I've found is for working with .jar, .class or even .apk files, but I'M NOT working with that, project B is a simple project full of .java files.</p>
  
  <p>To be a little more clear about it, Project A has a class named ClassFromProjectA, and Project B has a class like <code>ClassFromProjectB</code>. <code>ClassFromProjectA</code> is like follows:</p>
  
  <pre><code>public class ClassFromProjectA extends ClassFromProjectB{}
  </code></pre>
  
  <p>ClassFromProjectB is like follows:</p>
  
  <pre><code>public class ClassFromProjectB extends ListActivity implements OnInitListener, OnGesturePerformedListener {}
  </code></pre>
  
  <p>The "only" thing ClassFromProjectB is doing is, uppon extending from it, it changes the default layout for a ListView, applies specific navigation options, applies gestures to every activity extending from it, and a couple more tweaks.</p>
  
  <p>If I make this:</p>
  
  <pre><code>public class ClassFromProjectA extends ListActivity{}
  </code></pre>
  
  <p>Everything works fine with my class, no errors, no warnings, no nothing.</p>
  
  <p>We are ABSOLUTELY sure that <code>ClassFromProjectB</code> is working, it was a previous succesfull college project, and it also has an Example activity within its files to check functionality, and everything works like a charm. That's the thing though, it only works because it is in the same project file. But we CAN'T do that, we have to import and extend, and it isn't workin'.</p>
  
  <p>Please, let me know if you know how to make this work, or point me in the right direction.</p>