I wan’t to make a class that I will use to convert database tables to arrays. For that I need access to the Context. What should I implement or extend to access it properly?
Is this a good idead to just extend the class that consists database helper?
You can create a class that extends Application and an Application class object has a context
Access the context statically anywhere using Main.context
Make sure you declare application class in Manifest file
It can be done as :