• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help or example needed: Custom preferences inside OnBoard AccountManager

Hello. I Use shared preferences in order to have credentials stored inside the account manager,
Therefore I had to implement AccountManager, AccountActivity, etc. It all works. And I can add an account.
However, the screen looks horrible, and not like in the designer. ( I do not use PreferenceScreen/View type, instead I do it by myself, I save the SharedPrefs manually, I read them in the app manually and I read and assign them manually , if I would like to inspect/change the created account.

Take a look, what it looks like inside designer ( attached file = andr_set_designer.png)


And now how it looks during runtime (andr_set_rt.png)

Also, I cannot change the account once created, my app cashes.
I need to remove it, and add it again, resulting in the values already being filled ( meaning, though the account is removed, the values of the shared prefs still reside, and because I manually assign them each time, the account details are filled).
I need a good example for AccountManager to use an Account with customized credentials.
Does anybody know some good ones ?
I also would provide my code here, if anybody would like to see it. THX in advance.
 

Attachments

  • andr_set_designer.png
    andr_set_designer.png
    7.7 KB · Views: 99
  • andr_set_rt.png
    andr_set_rt.png
    4 KB · Views: 49
Back
Top Bottom