Window Focus Disable in Android
<p>I am stuck in a scenario. I have a login Form. I want to show it as disabled for some users. I can get that users but I dont know how to remove the focus from the window.</p>

<pre><code>//to check whether the current user is administrator or not
    public void checkAdministrator(){

        String owner = ParseValues.parsedGroupList.get(indexofGroup).getGroup_owner();
        String currentUser = CCMStaticVariable.loginUserId+"@abc.com";

        if(owner.equalsIgnoreCase(currentUser)){
            administrator=true;
        }
        else{
            administrator=false;
        }
    }
</code></pre>

<p>Now - </p>

<pre><code>if(!administrator){

//here I want to disable the whole Activity, I just want to show the activity in disabled state


}
</code></pre>
