tags:

views:

26

answers:

2

Hi folks

how to open activity from view.i am develop a game if game is over i need to move user to main menu activity.Please help me its very urgent to me

Regards

Aswan

A: 

Se this link. The section named "Opening a New Screen".

mbanzon
Thankq mbanzon. that link not useful to me.i need to open page insize view there i cant get startactivity and other methods
Aswan
I'm not completely sure what you want then - do you mean open a new view from inside the XML?
mbanzon
i have done game using custom view when game is over then i need to open main menu its activity.
Aswan
A: 

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();

Aswan