從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