Android App Authentication With Microsoft Account
I am just trying to create an login activity with microsoft. This is my code.... package com.example.microsoft_login; import android.app.Activity; import android.os.Bundle; import
Solution 1:
it's been a while since you posted this, so i'm not sure if you still need help, but it seems your error is on this line (in your onStart()):
this.auth.login(null, scopes, this);
if you replace the null with "this", that should fix the problem.
auth.login(this, scopes, this);
the login method from microsoft is as below:
public void login(Activity activity, Iterable scopes, LiveAuthListener listener) { this.login(activity, scopes, listener, null);
and requires an activity (where it will draw itself). in your code snippet, you provided null to it.
Post a Comment for "Android App Authentication With Microsoft Account"