I am wondering if someone could explain something about a class cast for me.
I am playing around with Android and I have a subclass of Application named ExApp.
I want to call a method of ExApp from one of my activities, so I do:
ExApp ex = ((ExApp)getapplication());
What I don't understand is why I need a double set of parentheses? Why can't I just:
ExApp ex = (ExApp)getApplication();
?
Thanks.