Type Casting error

Put your problem here if it does not fit any of the other categories.

Type Casting error

Postby venkatraman7 » Fri Apr 26, 2013 12:14 pm

Hi,
I am in need to finish my activity from outside a public class, after some surfing I found a solution like given below
((Activity) (mContext)).finish();

But I am getting Class Cast exception
Caused by: java.lang.ClassCastException: x.y.z cannot be cast to android.app.Application


I am badly need some suggestion on this

Regards
Venkat
venkatraman7
Developer
Developer
 
Posts: 41
Joined: Tue Nov 16, 2010 6:47 am
Location: Puducherry

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 19 guests