How to open activity from view? I am develop a game if game is over I need to move user to main menu activi开发者_StackOverflow中文版ty.
Thank you all. i got solution myself.
Activity activity=(Activity)this;
i passed this activity object to my view and then i have done
activity.finish();
精彩评论