[Solved] SQLiteOpenHelper.getReadableDatabase() method is crashing


Thank you all…i’ve found the answer….i was calling the
getAccountById method from a fragment…so i must re-pass the
Context again to it

UpdateAccountFragment a = new UpdateAccountFragment(accountID,getActivity());

and the constructor of the UpdateAccountFragment look like

 public UpdateAccountFragment (int accountID , Context context)
{
    this.context = context;
    this.accountID = accountID;
}

1

solved SQLiteOpenHelper.getReadableDatabase() method is crashing