获取应用程序包名称 [英] Get applications package name

查看:142
本文介绍了获取应用程序包名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin。我需要获取Google Maps API密钥,然后执行此操作,我需要我的应用程序包名称。



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

< 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


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.

解决方案

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

这篇关于获取应用程序包名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆