获取应用程序包名称

时间:2014-01-02 04:57:25

标签: android google-maps google-api package xamarin

我正在使用Xamarin。我需要获取Google Maps API密钥并执行此操作,我需要应用程序的软件包名称。我怎么得到这个?

我的应用程序名为SimpleMapDemo,是使用Google地图的示例之一。

1 个答案:

答案 0 :(得分:2)

打开您的清单文件,您将从<manifest>标记中找到您的应用程序的包名称。

以下是一个例子:

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

在上面的示例中,我的应用程序包名称为:com.example.recorder