I want to develop an universal app . I am novice to this approach .That means a single apk for both tablet and phone application . I had go through
Support Library<
findViewById will return the widget in case it's present in the layout, null in case there's no such widget. So if it returns non-null you can proceed with further initialization.
findViewById
null