Code example for RemoteViews

Methods: getLayoutIdgetPackage

0
 
        if (firstView == null || secondView == null) {
            return false; 
        } 
 
        final String firstPackage = firstView.getPackage();
        final String secondPackage = secondView.getPackage();
 
        if (!TextUtils.equals(firstPackage, secondPackage)) {
            return false; 
        } 
 
        final int firstLayoutId = firstView.getLayoutId();
        final int secondLayoutId = secondView.getLayoutId();
 
        if (firstLayoutId != secondLayoutId) {
            return false; 
        } 
 
        return true; 
Stop searching for code, let great code find you!  Add Codota to your java IDE