public class ListaAlunosActivity extends AppCompatActivity {
private void carregarListaAlunos() {
AlunoDao dao = new AlunoDao(this);
List<Aluno> alunos = dao.buscarAlunos();
dao.close();
AlunosAdapter adapter = new AlunosAdapter(this, alunos);
listaAlunos.setAdapter(adapter);
}
public class AlunosAdapter extends BaseAdapter {
@Override public View getView(int position, View convertView, ViewGroup parent) {
TextView textView = new TextView(conext);
Aluno aluno = alunos.get(position);
textView.setText(aluno.toString());
return null;
}
ocorre o erro:
2019-01-04 23:03:54.240 1588-7210/? E/AudioFlinger: not enough memory for AudioTrack size=131296
2019-01-04 23:03:54.240 1588-7210/? D/MemoryDealer: AudioTrack (0xecc1cb90, size=4194304)
0: 0xecc1cba0 | 0x00000000 | 0x000200E0 | A
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.j(SourceFile:103)
at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2)
at java.io.InputStream.read(InputStream.java:101)