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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:09:41+00:00 2026-06-09T23:09:41+00:00

I would like to make my application to have several skins. My primary aim

  • 0

I would like to make my application to have several skins. My primary aim was not to let the user change the skin, but to let me to customize the skin per customer.

By using styles and themes I can separate the skinning information from the layout. It works like a charm, but needs to have all the skins and all their resources (including heavy weight bitmaps) included the application, which seems as waste of precious space more as more skins created.

There is a way to make an auto build (ant) script and let it decide what to include, but for some other reasons it is not preferable.

I have seen several application on the market that uses separated theme files (downloadable and installable separately) so I have the guess that moving these info into separated APK can be achieved.

I’ve got so far that letting my app and skin provider apk have the same UserID to have more free access to each other, but still doesn’t know how to get the resources.

Content provider could be a solution, but with a cost of moving layout information back to code from XMLs and having a plus layer with some performance issues not adviceable for a solemly visual effect.

What is the best practice for this issue?

One more important info: I have to use API level 7 (2.1), so solutions working only in higher level APIs are out of scope.

  • 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-09T23:09:43+00:00Added an answer on June 9, 2026 at 11:09 pm
        private static Resources getThemeResources(String themePackage, Context context) throws NameNotFoundException {
        try {
            return [context.getPackageManager().getResourcesForApplication(themePackage);][1]
        } catch (Exception e) {
            return null;
        }
    }
    

    This will give you the resources for the specified apk. themePackage should be the full package of the theme you’re trying to access. context is the context of the caller, i.e. your application’s context.

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

Sidebar

Related Questions

I would like to make my own user-mode NAT application. I have the folowing
We have several single Pylon websites running but would like to make these more
I have an application where I would like to make my reducers (I have
I have made a small application in Java and I would like to make
I would like to make my application ask the user some informations via something
I have an application that uses several different Java classes and would like to
I'm developing a free application and would like to make some money by embedding
In our application, we would like to make a link to an online help
I'm building a Zend Framework 1.11.11 application and would like to make the routes
Would like to make anapplication in Java that will not automatically parse parameters used

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.