Friday, August 5, 2011

What are the steps for creating an activity?

  1. create your own Class and extend it from Activity
  2. implement the method OnCreate() in your activity
  3. create your view using Layout file
  4. use Activity.setContentView() to set the above created view to your application.
  5. declare the the same Activity in the AndroidManifest.xml File
  6. declare intent-filter for the activity (optional).

No comments:

Post a Comment