I use support library and target ver sdk 21. I did my own Account Manager, Login activity (with oauth-2 realization), etc. Everything work fine till today. I did many changes with code today, but not with res folder. Suddenly when I add account the small icon near it on the account list (in android "properties") stay like icon in navigation drawer (3 parallel lines) ic_drawer. I cleaned a project several times, recheck all png files in project, tried to find ic_drawer in code without success. I changed nav.drawable icon and it changes near the account name in the list, so AccountManager takes it definitly from there.
this is my xml/authenticator.xml file
<?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://ift.tt/nIICcg"
android:accountType="com.mypartlist"
android:icon="@drawable/ic_launcher"
android:smallIcon="@drawable/green"
android:label="@string/account_type_label" />
this is my manifest.xml
<service
android:name="com.mypartlist.elements.authenticator.AuthenticationService"
android:exported="true" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
As you can see the small icon is set to green.png, but at the screen I see ic_drawer.png
when I replace in code here
mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
R.drawable.ic_drawer, // nav menu toggle icon
R.string.app_name, // nav drawer open - description for
// accessibility
R.string.app_name // nav drawer close - description for
// accessibility
)
R.drawable.ic_drawer on another picture, small icon in account list gets like ic_launcher from xml/authenticator.xml : android:icon="@drawable/ic_launcher" I cleaned project several times with no success again.
How can I make this right?
No comments:
Post a Comment