Is it always safe to cast Context to Activity within View
<p>May I know, is it safe for me to always cast <code>Context</code> to <code>Activity</code> within a <code>View</code>?</p>

<pre><code>View {
    Activity activity = (Activity)this.getContext();
}
</code></pre>

<p>So far, it works fine all the moment. I was wondering, is there any edge cases that the above code will fail?</p>
