我无法在手机中看到我的应用图标

时间:2017-03-25 11:34:34

标签: android icons manifest

我使用Android Studio 我构建应用程序并在设备中播放。

但是,在设备的正常显示中(如电话打开状态),

我看不到图标

在设备设置中,我在应用程序管理器中找到该应用程序,

但我在正常显示中看不到

这是我的androidmanifest.xml

<application
        android:allowBackup="true"
        android:icon="@drawable/imagebutton_on"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity android:name=".Activity.SplashActivity"
            android:theme="@style/AppTheme"
            android:icon="@drawable/imagebutton_on"
            >

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="roid.intent.category.LAUNCHER" />
            </intent-filter>

        </activity>

我很喜欢那个

请帮帮我

这是我的完整android-manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.thewell_dev.fourscompany">

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/imagebutton_on"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity android:name=".Activity.SplashActivity"
            android:theme="@style/AppTheme"
            android:icon="@mipmap/imagebutton_on"
            >

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="roid.intent.category.LAUNCHER" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW"></action>
                <category android:name="android.intent.category.DEFAULT"></category>
                <category android:name="android.intent.category.BROWSABLE"></category>
                <data android:host="example.com"></data>
                <data android:scheme="http"></data>
                <data android:pathPattern="/.*"></data>

            </intent-filter>

        </activity>

        <activity android:name=".Activity.LoginActivity">


        </activity>

        <activity android:name=".Activity.JoinActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.MainActivity"
            android:theme="@style/ListTheme"
            android:icon="@mipmap/imagebutton_on"
            >



        </activity>

        <activity android:name=".Activity.CompanyActivity"
            android:theme="@style/CompanyTheme"
            android:configChanges="orientation|keyboardHidden|screenLayout|screenSize"
            >

        </activity>

        <activity android:name=".Activity.CardActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.CardListActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.CardPreviewActivity">


        </activity>

        <activity android:name=".Activity.ManagementActivity">


        </activity>


        <activity android:name=".Activity.BeaconActivity">

        </activity>

        <activity android:name=".Activity.CompanyCardActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.PreferencActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.FileListActivity">

        </activity>

        <activity android:name=".Activity.PasswordChangeActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.RemoveUserActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.ProvisionActivity">

        </activity>

        <activity android:name=".Activity.QuestionActivity">

        </activity>

        <activity android:name=".Activity.ExpandActivity">

        </activity>

        <activity android:name=".Activity.CardPrecaptureActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.BookMarkActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.FindPasswordActivity"
            android:theme="@style/SplashTheme"
            >

        </activity>

        <activity android:name=".Activity.CardListDetailActivity">

        </activity>

        <activity android:name=".Activity.UploadCertificationActivity">


        </activity>

        <activity android:name=".Activity.UploadRewardActivity">


        </activity>

        <activity android:name=".Activity.OnOffProductActivity"
            >

        </activity>

        <activity android:name=".Activity.OnOffCompanyActivity"
            >

        </activity>

    </application>

</manifest>

2 个答案:

答案 0 :(得分:0)

应用程序图标应放在mipmap文件夹中。 移动 imagebutton_on中的res\mipmap\和<{1}}代码中替换代码

application

。通过

android:icon="@drawable/imagebutton_on">

并解决了以下问题,正如Markus Kauppinen所说:

android:icon="@mipmap/imagebutton_on"

致:

<category android:name="roid.intent.category.LAUNCHER" />

希望这有帮助。

答案 1 :(得分:0)

尝试从所有活动代码中删除以下行

android:icon="@mipmap/imagebutton_on"

将其保留在应用程序标记中。