Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4066504
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:08:15+00:00 2026-05-20T16:08:15+00:00

When adding an activity to an existing Android project, I manually create a new

  • 0

When adding an activity to an existing Android project, I manually create a new class – is that the best / preferred way? How do others handle that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:08:16+00:00Added an answer on May 20, 2026 at 4:08 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm adding activity indicator view before doing some heavy ui updating (pushViewController takes a
In an Activity , I am manually inflating a View object from XML as
I am working in android SDK(Eclipse) platform 2.2 and I have been running through
Following is one of my application activity xml.Its running fine but the problem was
I want to pass ArrayList objArrayList from one activity to second activity and want
I'm trying to send a variable from my main activity to a widget. I
I have a completed app and I tried adding admob. I got the publisher
I am testing my code in device and it is running fine. But as
Quick sum up: I have a social website where users can follow/post/vote etc. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.