android.content.res.resources$notfoundexception string resource id #0x0

android

Solution

Change

Toast.makeText(getApplicationContext(), temp.size(), Toast.LENGTH_LONG).show();

to

Toast.makeText(getApplicationContext(), String.valueOf(temp.size()), Toast.LENGTH_LONG).show();

Problem

I am getting this error when i m trying to get list of data from table by calling constructor from another class, my main file is Account.java ``` try{ List<PersonalInformation> temp = helper.findAll(); Toast.makeText(getApplicationContext(), temp.size(), Toast.LENGTH_LONG).show(); } catch (Exception e) { Toast.makeText(getApplicationContext(), e+"", Toast.LENGTH_LONG).show(); } ```

Original source