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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:44:50+00:00 2026-06-18T15:44:50+00:00

I am trying to call an activity which is located in an external android

  • 0

I am trying to call an activity which is located in an external android library.

I have two projects in my eclipse :
-SuperApp (contains MainActivity which has a “Start Calculator Activity” button)
-AdditionLibrary (contains a CalculatorActivity which has a “This is the calculator activity” TextView)

Here are the source code for the activities :
https://gist.github.com/poiuytrez/4714770

If I reference the application from the SuperApp using the project properties->Android->Library
http://tinypic.com/r/2v31s8z/6
The app works fine.

If I export the jar of AdditionLibrary (http://tinypic.com/r/30m9wld/6) to add it in the libs folder of SuperApp, and then add the jar in the Java Build Path (http://tinypic.com/r/2efksk0/6), when I launch the app I have the following issue :

"android.content.res.Resources$NotFoundException".

http://tinypic.com/r/2hnbb6q/6

I have looked everywhere but I do not find the root cause of the issue.

  • 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-18T15:44:51+00:00Added an answer on June 18, 2026 at 3:44 pm

    If you are adding jar file into your project, then you need to all the resources used in the library project.

    Including menu, drawable, layout etc..

    For Example :

    This is used in your CalculatorActivity.java file :

    getMenuInflater().inflate(R.menu.activity_calculator, menu);
    

    so, you need to add menu file called activity_calculator.xml to your SuperApp Application.

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

Sidebar

Related Questions

I am trying to run a system call which will post an activity to
I am trying to call an activity from my mainactivity, but it is crashing
I'm trying to use the nostra13/ImageLoader ( https://github.com/nostra13/Android-Universal-Image-Loader ) in an activity which allows
I have an Android Jelly Bean Tablet which has been rooted and trying to
I'm trying to call this URL with an android httpget to have a json
I'm trying to call the Facebook authorization from my Android activity, but for some
I'm trying to launch an activity , when i got an incoming call for
I am trying to call c# function from javascript the code i have tried
My setup is as follows. I have a FragmentPagerAdapter called from my Activity which
My android app uses a single Activity which creates a single SurfaceView which is

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.