Buggy code:
public class SplashActivity extends AppCompatActivity { SQLiteDatabase mydatabase = null ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_splash ) ; mydatabase = openOrCreateDatabase ( dbname , MODE_PRIVATE , null ) ; mydatabase . execSQL ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>expense(id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>spenton<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>price<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>datetime<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>account<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>category<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>image<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>indicator<seq2seq4repair_space>color);" ) ; mydatabase . execSQL ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>category(name<seq2seq4repair_space>VARCHAR);" ) ; mydatabase . execSQL ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>account(id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>name<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>type<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>desc<seq2seq4repair_space>VARCHAR);" ) ; mydatabase . execSQL ( "Delete<seq2seq4repair_space>from<seq2seq4repair_space>category" ) ; mydatabase . execSQL ( "Delete<seq2seq4repair_space>from<seq2seq4repair_space>account" ) ; mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>expense<seq2seq4repair_space>(spenton,<seq2seq4repair_space>price,<seq2seq4repair_space>datetime,<seq2seq4repair_space>account,<seq2seq4repair_space>category,<seq2seq4repair_space>image,<seq2seq4repair_space>indicator)<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Pizza','450','30<seq2seq4repair_space>Jan<seq2seq4repair_space>15<seq2seq4repair_space>03:15<seq2seq4repair_space>PM',<seq2seq4repair_space>'Paytm',<seq2seq4repair_space>'Food',<seq2seq4repair_space>'',<seq2seq4repair_space>'red'<seq2seq4repair_space>)" ) ; Cursor resultSet = mydatabase . rawQuery ( "Select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>category" , null ) ; int total = resultSet . getCount ( ) ; if ( total == 0 ) { mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>category<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Food')" ) ; mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>category<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Transport')" ) ; mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>category<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Grocery')" ) ; <START_BUG> mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>account<seq2seq4repair_space>(name,<seq2seq4repair_space>type,<seq2seq4repair_space>desc)<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Saving<seq2seq4repair_space>Account','Saving<seq2seq4repair_space>Account','Saving<seq2seq4repair_space>Account<seq2seq4repair_space>transaction<seq2seq4repair_space>using<seq2seq4repair_space>debit<seq2seq4repair_space>card<seq2seq4repair_space>or<seq2seq4repair_space>online<seq2seq4repair_space>banking.')" ) ; <END_BUG> mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>account<seq2seq4repair_space>(name,<seq2seq4repair_space>type,<seq2seq4repair_space>desc)<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Credit<seq2seq4repair_space>Card','Loan<seq2seq4repair_space>Account','Credit<seq2seq4repair_space>card<seq2seq4repair_space>bank<seq2seq4repair_space>account<seq2seq4repair_space>for<seq2seq4repair_space>transaction.')" ) ; mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>account<seq2seq4repair_space>(name,<seq2seq4repair_space>type,<seq2seq4repair_space>desc)<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Paytm','Paytm<seq2seq4repair_space>Account','Paytm<seq2seq4repair_space>Account<seq2seq4repair_space>for<seq2seq4repair_space>online<seq2seq4repair_space>transactions.')" ) ; } Cursor categorySet = mydatabase . rawQuery ( "Select<seq2seq4repair_space>name<seq2seq4repair_space>from<seq2seq4repair_space>category" , null ) ; Constants . categories = new ArrayList < String > ( ) ; while ( categorySet . moveToNext ( ) ) { categories . add ( categorySet . getString ( 0 ) ) ; } Cursor accountSet = mydatabase . rawQuery ( "Select<seq2seq4repair_space>name<seq2seq4repair_space>from<seq2seq4repair_space>account" , null ) ; Constants . account = new ArrayList < String > ( ) ; while ( accountSet . moveToNext ( ) ) { account . add ( accountSet . getString ( 0 ) ) ; } Handler handler = new Handler ( ) ; handler . postDelayed ( new Runnable ( ) { @ Override public void run ( ) { mydatabase . close ( ) ; Constants . filterAccount = new ArrayList < String > ( ) ; Constants . filterCategory = new ArrayList < String > ( ) ; startActivity ( new Intent ( SplashActivity . this , DashboardActivity . class ) ) ; finish ( ) ; } } , 1300 ) ; } @ Override public void onBackPressed ( ) { } No newline ; at end ; of file ; }

Fix:
mydatabase . execSQL ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>account<seq2seq4repair_space>(name,<seq2seq4repair_space>type,<seq2seq4repair_space>desc)<seq2seq4repair_space>VALUES<seq2seq4repair_space>('Saving<seq2seq4repair_space>Account','Savings','Saving<seq2seq4repair_space>Account<seq2seq4repair_space>transaction<seq2seq4repair_space>using<seq2seq4repair_space>debit<seq2seq4repair_space>card<seq2seq4repair_space>or<seq2seq4repair_space>online<seq2seq4repair_space>banking.')" ) ;