android - Null Pointer exception in layoutInflate makes no sense. why? -
the line of code npe bombs:
viewgroup inflate = (viewgroup) layoutinflater.inflate(r.layout.liker,null);
inflate's signature (int layoutid, view viewroot)
http://developer.android.com/reference/android/view/layoutinflater.html
use view instead of viewgroup. please check inflate method returns view
Comments
Post a Comment