title: How to differentiate between ApplicationContext and Context?
body: <p>I have a Android method which receives instance of Context object, I want to differentiate if the passed context object is returned using one of the following methods</p>
  
  <ul>
  <li><p><a href="http://developer.android.com/reference/android/view/View.html#getContext%28%29" rel="nofollow">View.getContext()</a>:  Returns the context the view is currently running in.  Usually the currently active Activity.</p></li>
  <li><p><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationContext%28%29" rel="nofollow">Activity.getApplicationContext()</a>:  Returns the context for the entire application (the process all the Activities are running inside
  of).  Use this instead of the current Activity context if you need a
  context tied to the lifecycle of the entire application, not just the
  current Activity.</p></li>
  </ul>
  
  <p>Since both methods return instance of Context object but with different capabilities, how can I differentiate if passed context object is Activity Context or Application Context ?</p>