Error inflating class when trying to decodeStream
问题 i'm exausted. I'm working on this all day. In my app i have 100 ImageViews, but i'm getting a java.outofmemory error so i decided to decode and resize file, but i can not manage it to work. Can someone take a look in the code and suggest me anything? MainActivity code: public class MainActivity extends Activity implements OnClickListener { ImageView display; int toPhone; private Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);