I am using Gamelogic class which implements no one (just object to be honest )
I want from him to set a database where the game screen ask the logic questions and the last ask the sql question without all the Context usage , just to keep it simple .
is it possible ? if not what is the alternative?
Can someone show me little example? I am lost and the notepad example does not help
thanks, yoav.
You HAVE to use a
Contextin that case. But you are lucky, all activities areContexts so what you have to do is passing a reference of your activity to theGamelogicclass. For instance, you can pass it as an argument to its constructor:On your activity: