Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundle ID in android

Tags:

android

What is meant by bundle ID in android, What is its usage, And can two android apps have same bundle ID? if YES then why? and if NO then why

like image 384
Muhammad Irfan Avatar asked Feb 05 '13 10:02

Muhammad Irfan


People also ask

How do I find my Android Package ID?

You can find an app's package name in the URL of your app's Google Play Store listing. For example, the URL of an app page is play.google.com/store/apps/details? id=com.

What is a bundle ID for an app?

A bundle ID or bundle identifier uniquely identifies an application in Apple's ecosystem. This means that no two applications can have the same bundle identifier. To avoid conflicts, Apple encourages developers to use reverse domain name notation for choosing an application's bundle identifier.


2 Answers

A bundle ID otherwise known as a package in Android is the unique identifier for all Android apps. It needs to be unique as when you upload it to Google Play it identifies and publishes your app using the package name as the unique app identification.

Really it is the only thing which is necessary to identify your app, and generally it has 3 parts:

com.example.testapp

Where example is generally the company/publishers name, and testapp is the appname.

You will not be able to upload an APK to the store which has the same package as another app already in the store.

Should you ever need to change the package name in Eclipse, do the following:

Right click project > Android Tools > Rename Application Package...

like image 121
Joss Stuart Avatar answered Oct 22 '22 03:10

Joss Stuart


BundleID is a Unique Identifier for Identifying your app on Google Play Store. You can Note that for each apps on Google Play something like this:

https://play.google.com/store/apps/details?id = com.yourdomain.appname

You cannot assign the same BundleId for more than one App. This is because the Google Play uses your BundleID as Unique Identifier for your app.

So, you can configure your BundleID in Android Studio by editing your applicationId property in app level gradle as shown below:

android {
    compileSdkVersion 27
    defaultConfig {
        //Edit the applicationId for changing your BundeID.
        applicationId "com.yourdomainname.yourappname"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
like image 26
BharathRao Avatar answered Oct 22 '22 05:10

BharathRao