Get applications package name

2019-08-23 03:56发布

问题:

I am using Xamarin. I need to get the Google Maps API key and to do this I need my application's package name. How do I get this?

My app is called SimpleMapDemo and is one of the samples for using Google Maps.

回答1:

Open your Manifest file and you shall find the package name of your application from the <manifest> tag.

Below is an example:

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

In the above example my applications package name is: com.example.recorder