android - How to wait a method to finish in RxJava2 to execute the next one -


i'm doing call method stores info in sharedpreferences , next line intent activity, not able store @ point, , think intent doing faster save of info, after call finish/intent new activity sharedpreference has no time finish operation , doesn't write anything.

persistuserauth(userauth); openhomeactivity(); 

how can 2 methods synchronous make second method wait finish first method in rxjava2??

thank you.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -