Here, you are getting 3 Exceptions:
android.view.InflateException
java.lang.reflect.InvocationTargetException
java.lang.OutOfMemoryError
The problem starts to occurring from OutOfMemoryError Exception
. The drawable
, you are trying to set in the ImageView
with the id imageview2
, may be too large. So, when system trying to process that drawable
it exceeds memory limit...then OutOfMemoryError Exception
occurring.
Since, due to the OutOfMemoryError
, system can't set that drawable
to tha ImageView
then its throwing other Exceptions
as InvocationTargetException
and InflateException
.
Now, try to reduce the drawable's
size...may be your problem will be solved.