Some common android interview questions

Share accounts in a secure way between own apps.

There are two things to consider this here.

  • If either of the apps can have account created first or if there is a main app and other secondary apps that are dependent on it.
  • If either apps can have account then we need to have the share libray code for registration.
  • Communicate with the apps securely using KeyHash matching.
  • @Deprecated way is to have sharedUserId in manifest with same signing key, which will let the app to access each others data folder plus can run in same process too.