May I know, is it safe for me to always cast Context to Activity within a View?
View {
Activity activity = (Activity)this.getContext();
}
So far, it works fine all the moment. I was wondering, is there any edge cases that the above code will fail?