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

  • Home
  • SEARCH
  • 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 8063561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:04:52+00:00 2026-06-05T11:04:52+00:00

The first package is com.first.one and the second one is com.second.two Both the packages

  • 0

The first package is com.first.one and the
second one is com.second.two

Both the packages use the same xml files..

My problem is that my code in the first package works fine but the second package doen’t..

I think the problem should be in the manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.first.one"
    android:versionCode="1"
    android:versionName="1.0" >

As only the first package com.first.one is used and the second is not used.
if that is the problem. How can I declare both the packages in manifest?

If this is not the problem then why doesn’t my code in the second package work?

  • 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-05T11:04:55+00:00Added an answer on June 5, 2026 at 11:04 am

    The idea behind having separate packages is that secondary package(s) should supplement your application. For example, if you are writing an application that is to use a website API, you could keep that package, say com.websiteAPI and draw from its resources as necessary, by importing:

    import com.package_name_requested_here.R.*
    

    Another example would be to write a package specifically for global objects, say com.objects.

    To contrast this, your own package (the one specified in the manifest) should contain any and all files that are specific to your application. Remember that you can set up the package to include subpackages though. For example, if you made:

    package="com.mystuff"
    

    You could reference your activities in the manifest by writing:

    <activity android:name=".first.one" </activity>
    <activity android:name=".second.two" </activity>
    

    Hope this helps. ^_^

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

Sidebar

Related Questions

I am a newbie and just learned that if I define say package my.first.group.here;
First I wanted to build the DBD::mysql package. That kept failing because whatever make
I'm using EntityFramework code first with migrations. From the package manager console, I'm running
Hi Ive written a simple android application with two xml pages, one has an
I have two Live Wallpapers that belong to the same Application and I am
I have two apps: the first one is a remote service. It's manifest is:
first of all, i like to say that i have read the other two
I am building my first user control and I would like to package the
first of all, sorry if that question is dumb but I´m a total newbie
First of all, what's the difference between: www.domain.com and domain.com Should I pay attention

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.