[JAVA] [Android] Precautions for where to call context

Use Context in Activity

--GetApplicationContext (); can be written directly.

Use Context other than Activity (Fragment and Dao)

--Create a new class with a singleton and call Context from it to use.

Recommended Posts

[Android] Precautions for where to call context
[Android] Correct order to set Context in Dao
How to use Truth (assertion library for Java / Android)
[Note] Challenge to develop Android application for business use
How to call AmazonSQSAsync
[Android] What is Context? ??
Investigated how to call services with Watson SDK for Java