Skip to main content
1 of 2

if(mCursor!=null&&mCursor.getCount>0)

apply this