I am very grateful for any thoughts on the following problem: In Android, I have my MainActivity, which creates and sets up a database handler class. eg.
public class DbHandler extends SQLiteOpenHelper{
In addition, I created my OnClickListener , which creates an Intent , then startActivity the Intent.
My question / problem is how best to pass DBHandler to the new Activity . I was thinking about creating a global one - and about the risks of restarting a thread. I cannot completely decide how to send / serialize if I do not create a shell - but still the problem of transferring an object in a "send"
I want to understand how others decided it? Thank you very much.
source share