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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:16:45+00:00 2026-05-27T20:16:45+00:00

Working on my first Android app here. I’ve searched and tried everything I can

  • 0

Working on my first Android app here. I’ve searched and tried everything I can think of, but no luck…

As part of my app I’m trying to incorporate a separate file chooser project. I’m trying to keep the chooser separate so that it could be shared by a number of future projects. In and of itself, it launches fine. The problem is when I try to launch it from my main application I get a Resources.NotFoundException. I’ve had problems with Class Not Found, which I think I’ve straightened out by including the chooser in the Java Build Path and included in the Android Manifest of the main app.

Main App Manifest:

<application ...    
    <activity android:name=".MyMainApp" ...
    <activity android:name=".MyOtherActivity" ...
    <activity android:name="com.didjit.filechooser.FileChooser"/>
</application       

File Chooser is launched in main code by this:

Intent intent = new Intent(this, com.didjit.filechooser.FileChooser.class);
startActivityForResult(intent, REQ_CODE_CHOOSE_SOURCE);

On the Chooser side of things, the resource that’s not being found is R.layout.main:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    browseToRoot();
    findViewById(R.id.btnDone).setOnClickListener(this);
}

The error it throws is this:

: FATAL EXCEPTION: main
: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.didjit.MyMainApp/com.didjit.filechooser.FileChooser}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
...
12-27 18:07:00.296: E/AndroidRuntime(1961): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001

One thing that I’m suspicious of is com.didjit.MyMainApp/com.didjit.filechooser.FileChooser, as though it’s treating the external project as a sub component.

Also, I’m worried I frelled-up the project configuration while wrestling with this. Originally, the chooser class wasn’t being found. It seemed that having it listed under Java Build Path / Projects wasn’t enough; I had to also include the class folder under Java Build Path / Libraries. I also ran into the same trouble if I made the chooser project a library.

So then… Why can the project’s classes be found now but not the resources? Any help would be much appreciated. Thanks!

P.S. This is in Eclipse, coding against API 10.

  • 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-27T20:16:45+00:00Added an answer on May 27, 2026 at 8:16 pm

    Try replacing

    Intent intent = new Intent(this, com.didjit.filechooser.FileChooser.class);
    

    with

    Intent intent = new Intent("com.didjit.filechooser.FileChooser");
    

    They way you are currently doing it is telling the intent that the activity is inside your current project. That’s why its not finding the external resources. The way I am suggesting is the standard way to open an external application.

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

Sidebar

Related Questions

I'm very new to java and am working on my first Android app. I
So here I have this first time app I'm working on. When I run
I'm working on my first android app and have an SQLite database set up
I'm trying to implement OnListItemClick but can't seem to get it working. There are
I'm curently working on my first Android app, which is my first pice of
I'm trying to make an Android app, and the feature that I'm working on
I am working on a fairly basic screen layout for my first Android application
I have pretty much finished my first working Symbian application, but in my hastened
I'm working on my first 'real' F# assembly, and trying to do things right.
I have just started working on my first Android application and am going ok.

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.