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 8760931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:09:59+00:00 2026-06-13T15:09:59+00:00

Noob alert! I started my current app as a simple test activity running the

  • 0

Noob alert! I started my current app as a simple test activity running the main routine. I now want to turn it into a proper app which requires a main menu as the main_activity to call the sub activity with appropriate parameters.

I’m used to simple coding where you just rename files, but in Eclipse you need to do things in particular ways I’ve noticed. So what’s the proper procedure for shifting my current main_activity to a lower level and replacing the main_activity? Is it just a case of creating the lower activities and then copy/pasting code and .xml files, and then overwriting main_activity? Or should I refactor things in a particular order to keep the manifest and such in order?

  • 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-06-13T15:10:01+00:00Added an answer on June 13, 2026 at 3:10 pm

    Your question is a little confusing and I’m not 100% sure this is answering it but here are some tidbits:

    Your ‘main’ activity (entry into the application) is determined by the activity which provides a LAUNCHER intent-filter in AndroidManifest.xml

    In that file, you’ll see an activity with the added lines

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    

    This says that whichever activity this is – launch it when the app icon is hit.

    There aren’t really sub-activities (at least not in the way you’re talking about them). Activities represent different screens that are displayed to the user and to call one from another you use an Intent. If you want to pass data to the called Activity, look into Intent.putExtra and/or Bundles.

    As far as renaming, simply right click on a source file in Eclipse and choose refactor->rename. This will grep your project and do a find/replace on all your uses of the old name.

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

Sidebar

Related Questions

Version Control noob alert I've already installed both Mercurial, TortoiseHg and VisualHG into Visual
Lucene NOOB alert! I consider myself to be a human of at least reasonable
Noob here trying to do something simple with Jquery. Basically I have a small
A noob question. I have an alert: alertMessage = This is my message: 1
I'm a complete noob with google maps api and I started with a given
Noob Alert. I am learning RoR, have Windows 7, so I downloaded the latest
Noob Alert, I am trying to change an image in a UIImageView. popCard is
Noob alert : when I right-click on my eclipse project, the Source menu only
I'm a complete Flex/Flash noob, running Adobe Flash Builder 4 Beta 2. I have
Noob question alert! I am working on a basic clock that updates every second,

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.