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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:12:17+00:00 2026-06-12T18:12:17+00:00

I couldn’t find how to list all drawable inside another app from my app.

  • 0

I couldn’t find how to list all drawable inside another app from my app.

I managed to get drawables if I know the name, but couldn’t find how to do it with a simple loop from 1 to N.

Any of you could offer a code template to do this?

The following code already works:

mAndromedaAddonContext = createPackageContext( "com.demo.andromeda",
                Context.CONTEXT_IGNORE_SECURITY );
mPlanetsResID[0] = mAndromedaAddonResources.getIdentifier( "planet20111007081421628", "drawable", "com.demo.andromeda" );

But I want to iterate without using the resource name.
Something along those lines:
for(int i=0; i

I do have the same sharedUserId and process in the manifest file, so I have the privilege to access the resources from the other app.

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-06-12T18:12:18+00:00Added an answer on June 12, 2026 at 6:12 pm

    First use mAndromedaAddonResources.getAssets() to get an instance of AssetManger for the app you are targeting.

    see here:
    https://developer.android.com/reference/android/content/res/Resources.html#getAssets()

    Then you can use the

    public final String[] list (String path)

    method in AssetManager class to get a list of all assets at a given path( In your case, it would be the path of the res/drawable folder for the app you are targeting). This will give you a list of strings where each string is an asset name. Then you can simply use the same code you are using to obtain their identifiers.

    For more info on AssetManager:
    https://developer.android.com/reference/android/content/res/AssetManager.html

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

Sidebar

Related Questions

I couldn't find anything on this, but probably its just because I don't know
I couldn't find a straight answer to my question and need to know it
Couldn't find anything on this with a Google Search. Does anyone know how to
i couldn't find in one place ,all the Appstore rules for the required images
Couldn't find anything really useful for my needs. So if I already know my
Couldn't find similar questions: I'm currently designing my app and after that I will
Couldn't find better title but i need a Regex to extract link from sample
Couldn't get FacesContext.getCurrentInstance() in self spawned thread. Required to update the components dynamically based
I couldn't find anything similar to this anywhere. I have an array of pointers
I couldn't find this in the documentation. If I have a complex object in

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.