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 6845081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:27:23+00:00 2026-05-27T00:27:23+00:00

In basic Java, if I write code to solve a common problem and want

  • 0

In basic Java, if I write code to solve a common problem and want to use it in other projects, I would package it as a jar file and simply add it to those other projects.

But in Android–when that code may use drawables, strings and other resources–what can I do?

It looks like this question was asked here How to distribute the android reusable code in a package?, a year and a half ago, with the determination that hopefully this would be possible in the near future. I’m hoping someone has an update or a better answer.

The only option I know at the moment is to provide the full source and leave it to the using developer to move all classes into their project, add strings to their existing strings file, add their drawables to the project’s other drawables, etc. That is a nuisance and error-prone. Is there an easy way to add third-party code that contains these resources?

  • 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-05-27T00:27:24+00:00Added an answer on May 27, 2026 at 12:27 am

    Apparently the only solution is to distribute the other code as an Android project, then to reference that other project in Eclipse. Of course, that makes versioning and collaboration more difficult–my guess is that a team would need to establish a naming convention for these third-party projects they use in their workspaces. Perhaps add a version number to the project name, so that one app can use a more recent version of the library without breaking apps using an older version?

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

Sidebar

Related Questions

I'm trying to use basic Java code in Scala to read from a file
i have a really basic java program just one .java/.class file (.java uncompiled .class
What would be the basic and obvious security considerations and recommendations in a Java
I am investigating the use of web frameworks with my Java web-app. My basic
i'm supposed to write code which when given a text file (source code) as
I have decided to use Simple XML serialization and was stucked with basic problem.
I have an external JAR signpost-core-1.2.1.1.jar (from http://code.google.com/p/oauth-signpost/ ), that I want to include
I've written a basic Java applet which works as a map viewer (like Google
I am currently learning about basic networking in java. I have been playing around
Here's the basic idea: There is a java window (main) that opens another java

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.