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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -