Classcastexception That Shouldn't Happen
Im getting a ClassCastException that shouldnt be happening. Here is the code: TwitterApplication ta = (TwitterApplication)getApplication(); OAuthProvider p = ta.getProvider();
Solution 1:
You will get an error if the concrete class returned by getApplication() is not actually a TwitterApplication object.
Have you amended your Android manifest file so that it uses this TwitterApplication class? If not, you will need to do. Simply extending Application is not enough - you must tell Android to use the TwitterApplication concrete class.
Post a Comment for "Classcastexception That Shouldn't Happen"