Calling Firebase Analytic's getInstance() every time vs. storing instance as a static variable in Application class : <p>I'm trying decide which of the following is the proper way to do this:</p>

<ol>
<li>Calling <code>FirebaseAnalytics.getInstance(Context)</code> from every activity, fragment, and service that I'm logging an event from.</li>
</ol>

<p>or</p>

<ol start="2">
<li>Calling <code>FirebaseAnalytics.getInstance(Context)</code> once from <code>Application</code> class and keeping it around as a public static variable. Then, from everywhere I need this I can call `MyAppClass.mFirebaseAnalytics.logEvent()'.</li>
</ol>

<p>Will any of the above methods have a undesired impact on the events that are automatically collected and/or do either of those have an efficiency gain over the other?</p>

<p>Many thanks!</p>
