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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:23:25+00:00 2026-06-06T18:23:25+00:00

I am making an app in which i have a main activity that the

  • 0

I am making an app in which i have a main activity that the user ‘sees’ on clicking the app icon and another activity which will be started by the user from within the main activity(by clicking the button on main activity screen) by using an intent. Now, how should i make the android manifest ? Should i nest the 2nd activity within the main activity or should i list it separately like the main activity ? Also when do we use an intent filter ? I searched on the web, some people have used an intent filter, others have not. My manifest file is given below. My app is starting but when i launch the 2nd activity, it stops working and asks for force close. Please help. And thanks for your time.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.graphs"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="10" />

    <application
        android:icon="@drawable/brain2"
        android:label="@string/app_name" >
        <activity
            android:name=".GraphsActivity" 
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
        </activity>
        <activity android:name="MainPlot"></activity>


    </application>

</manifest>
  • 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-06T18:23:26+00:00Added an answer on June 6, 2026 at 6:23 pm
    Should i nest the 2nd activity within the main activity or should i list it separately like the main activity ?
    

    both should come separately as flow of activity not effect manifest.

    Also when do we use an intent filter ?
    

    In your case only Setting Launcher activity intent filter needed which you have set.

    My app is starting but when i launch the 2nd activity, it stops working and asks for force close.
    

    use

    <activity android:name=".MainPlot"></activity>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an App in which i have to play music from iPod
I am making an app in which I have to encrypt the xml from
I am making an app in which I have to play video file. .flv
I am making an app in which I have to retrieve the phone number
I am making an app in which I have to open default audio player.
Iam making an app which has one index.php file. I also have these other
Hi i'm making an app which need to get user's gmail account contact list
I'm making an app which reads the data from a website every interval and
Im kinda stuck. I have an activity in my app that just wont go
I am making a program which would have the user enter a sentence and

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.