2015-04-18 56 views
2

我正在開發一個應用程序,它是Google即時的替代品。 我的應用程序在刷新時已經啓動。谷歌即時刷卡圖標

我需要更換戒指的圖標? 在市場上的一些應用程序可以做到這一點,並已在Cyanogenmod的功能。所以這是可能的,但如何?

感謝

編輯:

經過幾次重新啓動它顯示圖標正常。我可能需要找到一種方法來強制它。也許我可以重新啓動SystemUI但是如何? :)

<uses-permission android:name="android.permission.READ_CONTACTS"/> 
<uses-permission android:name="android.permission.CALL_PHONE"/> 

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

    <activity 
     android:name=".contact.ContactActivity" 
     android:label="@string/title_activity_contact" 
     android:excludeFromRecents="true" 
     android:theme="@style/Theme.AppCompat.NoActionBar.Transparent"> 
     <meta-data 
      android:name="com.android.systemui.action_assist_icon" 
      android:resource="@drawable/ic_assist"/> 

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

     <intent-filter> 
      <action android:name="android.intent.action.ASSIST"/> 
      <category android:name="android.intent.category.DEFAULT"/> 
     </intent-filter> 
    </activity> 

</application> 

回答

1

試試這個:

<intent-filter> 
    <action android:name="android.intent.action.ASSIST"/> 
    <category android:name="android.intent.category.DEFAULT"/> 
</intent-filter> 
<meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@drawable/launch_button" /> 
+0

我讀來源。它看起來像它的真實,但沒有變化 –

+0

你可以做一個截圖?並張貼您的清單? –

+0

它的工作原理,但需要一段時間,並重新啓動,使其工作。 :/ –