从google play的文档中,我了解到搜索和应用程序时android:name
也很重要。我的应用程序被称为“Bike Dice”,但只有在搜索“BikeDice”时才会出现,它是AndroidManifest.xml
文件中的名称。我尝试将它改为“自行车骰子”,它在启动时打破了代码和应用程序崩溃,但是当我尝试在谷歌播放中更新它时,我发现它在搜索“自行车骰子”时首先出现。Android中的空间:AndroidManifest.xml中的名称
所以我的问题是:有没有黑客或其他什么东西,让你有两个词android:name
?
编辑:这是我的AndroidManifest.xml
文件:你的清单已经有一个名为android:label
这是自动生成的属性
<?xml version='1.0' encoding='utf-8'?>
<manifest android:versionCode="102" android:versionName="0.1.2" android:windowSoftInputMode="adjustPan" package="com.dice.bike" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:debuggable="false" android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="BikeDice" android:screenOrientation="portrait" android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.Translucent" />
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
您能分享一个链接到这个官方参考吗? – 2014-09-06 15:07:50