Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9104903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:58:14+00:00 2026-06-17T01:58:14+00:00

We’re working on a project (Project A) in college that has to extend from

  • 0

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.

So far I’ve tried this:

  • Adding project B on Project A’s build path (In the Projects TAB)
  • Importing, with full package name and .java name.

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.

To be a little more clear about it, Project A has a class named ClassFromProjectA, and Project B has a class like ClassFromProjectB. ClassFromProjectA is like follows:

public class ClassFromProjectA extends ClassFromProjectB{}

ClassFromProjectB is like follows:

public class ClassFromProjectB extends ListActivity implements OnInitListener, OnGesturePerformedListener {}

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.

If I make this:

public class ClassFromProjectA extends ListActivity{}

Everything works fine with my class, no errors, no warnings, no nothing.

We are ABSOLUTELY sure that ClassFromProjectB 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’.

Please, let me know if you know how to make this work, or point me in the right direction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:58:16+00:00Added an answer on June 17, 2026 at 1:58 am

    What you can do if you have the complete project B that you need to include inside your project (project A).

    1. Make Project B a library in the following manner :
      • Right click the project B in Eclipse, and click on Properties.
      • Select Android then the isLibrary check box.
        Project B Properties
    2. Once Project B is a library, you have to add the library B (formerly project B) in your project A in the following manner :
      • Right click the project A in Eclipse, and click on Properties.
      • Select Android then click on Add….
        Add Library
      • You should see a list with all the library projects inside eclipse on your machine. You should also see Project B. Select it and click OK.
        Library Selection
      • You should see Project B in the list of libraries.
        Project B added as Library

    Now you should be able to import packages from Project B to project A and use its classes with no problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am doing a simple coin flipping experiment for class that involves flipping a
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.