Opening Android Sqlite Database in Fragment

后端 未结 1 1871
忘了有多久
忘了有多久 2021-01-22 01:40

I\'m trying to open and write to a Sqlite database in Android. According to the log output, it\'s not opening. I know that my syntax isn\'t great and I should be saving from a P

相关标签:
1条回答
  • 2021-01-22 02:31

    Try this

     SqlDatabase dbEntry = new SqlDatabase(getActivity());
    

    instead of

     SqlDatabase dbEntry = new SqlDatabase(this);
    
    0 讨论(0)
提交回复
热议问题