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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:21:11+00:00 2026-05-27T15:21:11+00:00

My objective: Integrate an open source todoapplication as a library app into my main

  • 0

My objective:

  1. Integrate an open source todoapplication as a library app into my main application.

Steps I have completed:

  1. Configured the todoapp as a library project by clicking Islibrary function.
  2. Added the library to my main project.
  3. Added all the activities of the library project with their full package names in my main android manifest file as per this link.

Issue Faced:

I am getting a runtime error and there are no comilation errors and the library project is integrated perfectly.

Root Cause:

When I analyzed Logcat, I understand it is due to application name conflict. My main app has an application name as “wish” in its manifest file. The library project in its manifest file also has a name as “Todoapplication”

In the java file there is a line of code as below:

m_app = (TodoApplication) getapplication();

This line throws run time exception because in the main manifest file there is no Todoapplication in the name parameter.

Can anyone, please help me on the situation. Thanks.

  • 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-27T15:21:12+00:00Added an answer on May 27, 2026 at 3:21 pm

    If the library project has a custom Application class, you will need to inherit from its custom Application class when you define yours. So, have WishApplication extends ToDoApplication, instead of WishApplication extends Application.

    Note that using a custom Application is frequently pointless. It has the same effective scope as static data members, and there can only be one Application object. Hence, I recommend avoiding using a custom Application class in libraries, as you cannot have two libraries both demanding that the host application use their custom Application class. And, for your own code, only use a custom Application class when it is somehow clearly superior to just an ordinary static data member.

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

Sidebar

Related Questions

how would I integrate Facebook into my Mac Application. I could give Objective-C a
I have been working three days straight to try and integrate ads into my
Objective: In support of a Windows Service that may have multiple instances on a
I am relatively new to Objective C and need some array help. I have
I have Integrated Cocos2d to my Windows based application. When I run my Project
Possible Duplicate: deep copy NSMutableArray in Objective-C ? I have two arrays of length
I'm new to Objective-C, and I'm trying to create an app with two buttons
I have a game built on xcode using objective c. this game needs to
Is it possible to integrate Java, Python, or Objective C directly with the Firefox
I normally work in Objective-C, but am now trying to integrate some C code

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.