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

  • SEARCH
  • Home
  • 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 7186591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:39:47+00:00 2026-05-28T18:39:47+00:00

I’ve built a semi-push service (checkins for notifications from a centralized http server) that

  • 0

I’ve built a semi-push service (checkins for notifications from a centralized http server) that I’d like to distribute to a few friends and customers, so they can easily add push-like notifications to their apps without much hassle.

I’ve gotten far enough to package the JAR and include it in a few of my other projects, but now I’m hitting a brick wall with regard to resource packaging —

  • In my PushNotify project, I have a resource: R.drawable.goldstar
  • I draw it twice in the application, once by referencing R.drawable.goldstar, and once by referencing resources.getIdentifier('goldstar', 'drawable', 'com.com.pushnotify')
  • When I package PushNotify as its own APK, the gold star correctly appears in both places.
  • I right click in eclipse, Export Project, as JAR file, un-check “ApplicationManifest.xml” from included files, and click “Finish”.
  • I can verify that the size of this JAR file increases when I add more drawable resources.
  • When I then package DependantApp.apk, including PushNotify.jar in the build path, the gold star correctly appears in both places.
  • If I uninstall PushNotify.apk, the gold stars disappear from DependantApp.apk as if they were not packaged with the JAR; a 0 value is returned for getIdentifier('goldstar', 'drawable', 'com.com.pushnotify').

How can I distribute a JAR with drawable resources, and have them appear in the dependent apps? Apps including my JAR never need to access the icons I am distributing, only my own code does.

Despite much nay-saying on in the search results I find, I am certain this is somehow possible, because a) my JAR file grows when I add new images, and b) I’ve included JAR files that come with icons before (Airpush does this, as does UrbanAirship).

Thanks in advance!

  • 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-28T18:39:48+00:00Added an answer on May 28, 2026 at 6:39 pm

    How can I distribute a JAR with drawable resources, and have them appear in the dependent apps?

    That is not presently supported. Creating Android library projects that can distribute resources is on the tools roadmap and will hopefully come out in the not-too-distant future.

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

Sidebar

Related Questions

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 have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I have a text area in my form which accepts all possible characters from

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.