We have 2 Android activities (activity A and activity B)
Suppose that we instantiated a Firebase reference in activity A. Activity A also handles all user authentication (Facebook, Google, and email/password).
Activity B, which is started from activity A using an Android intent, should use the Firebase reference to access some data on the Firebase servers.
Now I was wondering what the best design is to send the Firebase ref from activity A to activity B.
Bundle the Firebase reference with the intent using Java Serializable and use intent.getExtra() in Activity B
Bundle the Firebase reference with the intent using Android Parcelable and use intent.getExtra() in activity B
Initiate the Firebase reference in a Android service and bind each activity to that service
Something else.