I\'ve been getting InflateException/ClassNotFoundException error intermittently. I\'ve seen similar errors before in SO but they were caused by spelling errors. I spelled \'
you haven't closed LinearLayout tag
and please use following code for inflating layout.xml
LayoutInflater inflater = getLayoutInflater(); final View v = inflater.inflate(R.layout.your_layout_id, null);