title: DispatchKeyEvent: determine the exact type of the getCurrentFocus view
body: <p>I have a custom activitygroup that adds and removes views to the stack.</p>
  
  <p>I override the <code>dispatchKeyEvent</code> to check for certain keys pressed.</p>
  
  <p>the problem is that I need to check the type of the current focused view like this:</p>
  
  <pre><code>View v=getCurrentFocus();
  </code></pre>
  
  <p>when I check for the type of the view,
  it returns a type like this</p>
  
  <pre><code> com.android.internal.policy.impl.PhoneWindow$DecorView
  </code></pre>
  
  <p>what is this type and can I cast any class object to this type ?</p>
  
  <p>thanks</p>