How to create Activity in an application.
To create an activity following things should be considered.
- We need to create a subclass of Activity .
- In our subclass ,we need to implement various call back method to manage the various state of lifecycle such as for stopped,resumed,created,destroyed.
- Two important call back methods are oncreate() and onpause()
- oncreate()- the system call this method when you create your activity.you needs to call thesetcontentview() to define the layout of user interface.
No comments:
Post a Comment