Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to finish an activity from my class which is extends PhoneStateListener class.
(I know how to finish an activity from another, but i unable to do the same from a class file.)
I searched a lot on internet,but no luck.
Please help me on this
Posted
Updated 27-Feb-12 22:49pm
v2

1 solution

this may be help u....

add this line where you want to finsh current activity
Java
((Activity)getContext()).finish();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900