I came across with this exeption:
java.lang.ClassCastException: android.app.Application cannot be cast to app.Main.MainActivity
Here is the code where the problem should be:
private Context mContext;
public Chronometer(Context context) {
this.mContext = context;
}
((Main)mContext).updaterTimerText(String.format("%02d:%02d:%02d:%03d" , hours , minutes , seconds , millis));
I am making a Chronometer-app, if that helps...
Any Ideas?