How to display data from a TXT in my arrayList - Android Studio [closed]

1

I currently do this:

ArrayList<produtoItem> lista = new ArrayList<produtoItem>();

lista.add(new produtoItem(R.drawable.imagem, "AA", "AA", "AA", "AA"));

adapter = new produtoAdapter(this, lista);
ListView listView = (ListView) findViewById(R.id.listView1);
listView.setAdapter(adapter);

THE QUESTION IS: How to use a TXT as a "DATABASE"?

I need to enter more than 3000 items, which generates the error: method code too large . I believe that using a TXT as "DATABASE" will solve my problem.

OBS: This app needs to work without the need for the internet. That is, I can not use an external database.

    
asked by anonymous 28.12.2018 / 06:04

0 answers