How to write text to a text file and izvilkt of the same?

In General, you need to make the menu item favorites:
I would want that at the click of a button, the text was taken from TextView1,TextView2,ImageView1 and recorded in a text file , creating a new line, of course.
in the second class( favorites ) it will take the text from this file
here is part of code
1)the Button (handler )
listView.setOnMenuItemClickListener(new SwipeMenuListView.OnMenuItemClickListener() {

public boolean onMenuItemClick(int position, SwipeMenu menu, int index) {
String value = adapter.getItem(position).title;
switch (index) {
case 0:
Izb Intent = new Intent(Main.this Kaka.class);
izb.putExtra("name", ((TextView) findViewById(R. id.textView1)).getText().toString());
2) the template for the adapter

3) how to fill
List catalog = new ArrayList<>();
catalog.add(new ListData("1", 199, R. drawable.saiman));
4) what if instead of catalog.add... unfolded the text from a text file
July 9th 19 at 13:25
1 answer
July 9th 19 at 13:27
1) All the code in the appropriate tags
2) What kind of items? Especially the template for the adapter without the code at all
3) Where the question itself?
In short, the question will revise, it is impossible to understand what you need.
in short ... there's a list using the ArrayList , is the swipe menu.... you need to pass a name , a price and a picture to the class favorites , but make it so that he would create a new row and recorded there - coby.Barton commented on July 9th 19 at 13:30
sorry , forgot to mention ... the button where everything happens in the swipe menu - coby.Barton commented on July 9th 19 at 13:33

Find more questions by tags Android