Everything about AndroidManifest.xml

what is package attribute?

if I have many java packages which package goes into the package attribute?

This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. This also sets the package name under which the stub Activity will be generated. The package name you use in your application must be unique across all packages installed on the system; for this reason, it's very important to use a standard domain-style package for your applications. In the example above, we used the package domain "com.android"; you should use a different one appropriate to your organization.

Can I have two packages at the root level?

read the xml elements of this file

XML elements for an application