0

Suppose Project P1 have A.java class needed in Project P2. Both the Project P1 and P2 are unique application and have android:sharedUserId= "com.example" and signed by same key. Question: How to create object of A.java Present in P1, in project P2 project ?

Raman
  • 166
  • 1
  • 6
  • I don't think that is possible with APKs. Define a common module which can be integrated by both apps. Or think about IPC, using e.g Intents, ContentProvider, ... – Christopher Mar 31 '17 at 10:00
  • Check out IPC mechanism. http://stackoverflow.com/questions/5740324/what-are-the-ipc-mechanisms-available-in-the-android-os or http://codetheory.in/android-interprocess-communication-ipc-messenger-remote-bound-services/ – Sreehari Mar 31 '17 at 11:12
  • You can't use class from other application. All you can do to share some business logic between apks is https://developer.android.com/guide/components/aidl.html – Beyka Mar 31 '17 at 11:49
  • @ this link --> https://developer.android.com/guide/topics/manifest/manifest-element.html#uid, what does this mean "Application with the same user ID can access each other's data" – Raman Mar 31 '17 at 12:01

0 Answers0