A
A
ArturPendragonOfficial2020-11-13 22:59:58
Android
ArturPendragonOfficial, 2020-11-13 22:59:58

What is my mistake in the code of a banal Sign In android application?

(I just started using Retrofit and MvvM architecture - newbie)
The crux of the matter !
I made a registration. Now I want to log in through the created user, having received my token. But the token somehow does not come in correctly (as if it is working out late). I am attaching a photo of the code Model View Viewmodel and Log-and
5faee5252d053197915728.png
5faee52ec46c8846073339.png
5faee5551308c205153657.png
5faee561364f0923082168.png

HELP me Pls)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-11-13
@ArturPendragonOfficial

In the same place it is written - Callback. callback. asynchronous operation. You are simultaneously trying to get it out of prefs. And you go to a network asynchronously on other flow. In order not to block ui.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question