I have made a form and connected it to a firebase database. It has an EditText in which you write something(e.x a suggestion) and then you press the button to submit it in the firebase database. But how can I refresh the whole xml file so I can write a new suggestion. I have tried this at first
setContentView(R.layout.activity_suggestions);
But after that, the xml file was refreshed but I couldn't submit a new suggestion. and then I tried this which works but its really annoying because if I press the back button it gets me back to the same page
Intent reportBugIntent = new Intent(ReportBug.this, ReportBug.class);
startActivity(reportBugIntent);
Is the any other way I can do that?