Accepted answer

you can use the "new class" dialog, but that leaves other steps you need to do by hand (e.g. adding an entry to the manifest file). if you want those steps to be automated, you can create the activity via the manifest editor like this:

  1. double click on androidmanifest.xml in the package explorer.
  2. click on the "application" tab of the manifest editor
  3. click on "add.." under the "application nodes" heading (bottom left of the screen)
  4. choose activity from the list in the dialog that pops up (if you have the option, you want to create a new top-level element)
  5. click on the "name*" link under the "attributes for" header (bottom right of the window) to create a class for the new activity.

when you click finish from the new class dialog, it'll take you to your new activity class so you can start coding.

five steps might seem a lot, but i'm just trying to be extra detailed here so that it's clear. it's pretty quick when you actually do it.


i have create a eclipse plugin to create activity in one click .

just download the plugin from

paste the plugin in the dropins folder in eclipse and restart eclipse

for more details please see my blog

need your comment on this if it was helpful...


there is no tool, that i know of, which is used specifically create activity classes. just using the 'new class' option under eclipse and setting the base class to 'activity'.

thought here is a wizard like tool when creating/editing the xml layout that are used by an activity. to use this tool to create a xml layout use the option under 'new' of 'android xml file'. this tool will allow you to create some of the basic layout of the view.


for creating new activity simply click ctrl+n one window is appear select android then another window is appear give name to that secondary another activity is created


the r.* classes are generated dynamically. i leave the "build automatically" option on in the project menu so that mine r.* classes are always up-to-date.

additionally, when creating new activities, i copy and rename old ones, especially if they are similar to the new activity that i need because eclipse renames everything for you.

otherwise, as others have said, the file->new->class command works well and will build your file for you including templates for required methods based on your class, its inheritance and interfaces.


i just use the "new class" dialog in eclipse and set the base class as activity. i'm not aware of any other way to do this. what other method would you expect to be available?


an easy method suggested by google android developer community.

enter image description here


it is now much easier to do this in eclipse now. just right click on the package that will contain your new activity. new -> other -> (under android tab) android activity.

and that's all. your new activity is automatically added to the manifest file as well.

Related Query

More Query from same tag