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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:05:32+00:00 2026-06-02T16:05:32+00:00

I would like to write an Android application (let’s call it ‘ZX’) which communicate

  • 0

I would like to write an Android application (let’s call it ‘ZX’) which communicate with other apps which are unknown in advance.

ZX doesn’t want to communicate with all the other apps. It only wants to communicate with apps approved by the user via a ZX-permission. ZX-permissions can be granted and revoked at any time by the user via one of the ZX’s activities.

In order to do that, ZX needs to know for sure which app is trying to communicate with it, and in the case of apps connecting for the first time with ZX it needs to display its name (or something else which uniquely identify it) to the user to ask if it should allow it or not.

Questions:

1) How to identify the calling app?

2) What IPC mechanism is recommended for that?

  • 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-02T16:05:34+00:00Added an answer on June 2, 2026 at 4:05 pm

    It’s sort of hard to give a great answer to this question because you’re being pretty cryptic with the details… However, I’ll take a stab at it..

    Depending on what “ZX” does, something like the Observer Pattern could work for this. If applications wanted to communicate with ZX they would send ZX a message, adding themselves to a lookup table / list which ZX maintains.

    Basically you’d have something like this…

    Application AIwishes to communicate with ZX. It sends ZXa message containing information about the application (whatever it is you need, IP Address etc.). This information could go to a function such as addApplication()which makes a new CommApp object storing all relevant information about the application.

    ZX could then send AIa unique authentication key which it could use for further communication. This could handle the actual session. Any further communication between the two applications can be authenticated with the unique key. This approach assumes you’re using authentication for identification of different apps rather than trying to keep “the bad guys” out.

    If you could expand on your actual situation I’d be happy to edit my question to suit your needs more.

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

Sidebar

Related Questions

I would like to write an Android application that can be activated by sending
I would like to write a client application for Android that uses the Google
I would like to write application (as background service) which will encrypt whole file
I would like to write an application that would run on the Android device
I would like to write a web application in which users can record short
I would like to write an IO intensive application with no underlying OS, running
I'm writing an android application, and I would like to get an xml string
I have an android apk file hosted in iis 7 which I would like
I have a native application written in C++. I would like to write an
I would like to build two versions of my Android application using an Apache

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.