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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:58:29+00:00 2026-06-08T13:58:29+00:00

I have library project which referred by many applications. Now I got a new

  • 0

I have library project which referred by many applications. Now I got a new requirement in which I need to change the function in this library project. I need to pass a variable to my web service depending on by which application this function has been called. So need to know the name of the current application in that library project. I know I can do it by passing Context but I am looking for the option without passing Context. Because otherwise I dont know how many applications I will have to change.

  • 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-08T13:58:31+00:00Added an answer on June 8, 2026 at 1:58 pm

    As far as I know.. When a method in your common library is called, the method itself can not know which application is calling it. Passing a parameter to identify the application is the best option you have.

    Depending on the functionality and the time when you call your methods.. You could get the application which is running in the foreground. But if you have a service running or something less straight forward, this will be again a hard thing to do.

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

Sidebar

Related Questions

Which library/project is currently usable for creating Facebook applications? This is a followup to
I have a flex library project, assume this project as basic utility which will
I have a Library project set up and a project which depends on this
I have a library project which includes a object (.o) file. I have the
I have a class library project which contains some content files configured with the
I am developing an android app in which I have included a library project,
I have a project which uses a large library residing in its own repository.
I have composite project which contains: C++ library for Linux/Windows, C++/CLI library based on
I have written a Flex Library project - a .swc file - which is
I am creating a Control Library project. I have some Cursor files which i

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.