1

For example, I have activityMain which contains the main logic of the Application, but it should be opened from several buttons that stored in other activities, and some activities contains multiple buttons too. And they should call activityMain. So i need to pass different data from db depending on which button called activityMain

Help please, there weren't similar topics at all.

Fake Happy
  • 11
  • 1
  • 2
    Send some data through [intents](https://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android-application) with your activity name or id – javdromero Jul 30 '21 at 14:12

1 Answers1

0

If i Understand your question correctly, you can achieve this functionality with android jetpack navigation component. I add the link of documentation below

Get started with the Navigation component

Mahan Ziyari
  • 11
  • 1
  • 1