Change the android project to make it another project

Source: Internet
Author: User

Some Android projects are extended by functions in the same basic Android version, but it is too troublesome to create a project and copy a file and a file, sometimes there are some strange issues

Therefore, the best way is to extend functions directly in this basic version. However, there cannot be two projects with the same name in eclipse. Even if you rename this project and compile and install it, android will also be

Identify the renamed application and the former application as the same application. What are the reasons and solutions?

First, we should understand how Android distinguishes different applications? In Android, how to differentiate different applications is: Only applications with identical signatures and package names can be recognized as the same application.

An android package name is a unique system name for.apkFile,
Set by the "Android: Package" attribute of the <manifest> element in the package's manifest.

How to obtain the package name can avoid the problem of duplicate package names with other applications, resulting in several applications cannot be installed on the same mobile phone. Let's take a look.
Bypassing the pitfalls of Android Application Development"

After learning about this, let's take a look at how to make changes.

1. Change the android project name.

The purpose is to enable the two projects to be loaded in eclipse at the same time. Right-click the omnipotent item, right-click the refactor, and click Rename to enter the name to change.

Ii. Change the package name.

This is to change the package name of Android so that the two versions of the app are not recognized as the same app during installation. Right-click Android tools and choose rename application package,

Enter the package name you want to change, click OK, and a box will pop up. Select all the tickets under the changes to be confirmed med box, and click Finish.

So far, this project is another android project.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.