Code example for Context

Methods: getApplicationInfo

0
    } 
 
    public boolean isSplitTouchEnabled() { 
        if (mSplitTouchEnabled < 0 && mContext != null) {
            return mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.HONEYCOMB;
        } 
        return mSplitTouchEnabled == 1;
    } 
 
    public boolean isTouchable() { 
        return mTouchable;
    } 
 
    @SuppressWarnings("deprecation") 
    private void preparePopup(WindowManager.LayoutParams p) {
        if (mContentView == null || mContext == null || mWindowManager == null) {
            throw new IllegalStateException("You must specify a valid content view by "
                    + "calling setContentView() before attempting to show the popup."); 
        } 
        if (mBackground != null) {
            final ViewGroup.LayoutParams layoutParams = mContentView.getLayoutParams();