我对android很陌生。当我尝试在socialAuth中创建新的SocialAuthDialog时,出现上述错误。我不知道如何解决此问题。任何帮助将非常感激。
private void startDialogAuth(final Context context, final Provider provider, final String socialProcedure,
final int providerID)
{
CookieSyncManager.createInstance(context);
Runnable runnable = new Runnable()
{
@Override
public void run()
{
try
{
url =
socialAuthManager.getAuthenticationUrl(provider.toString(), provider.getCallBackUri())
+ "&type=user_agent&display=touch";
handler.post(new Runnable()
{
@Override
public void run()
{
try
{
new SocialAuthDialog(context, url, provider, dialogListener, socialAuthManager,
socialProcedure, providerID).show();
}
catch (Exception e)
{
Log.d("Social OAuthAdapter", "-- startDialogAuth :" + e.getMessage());
}
}
});
}
catch (Exception e)
{
Log.d("Social OAuth Adapter", "-- startDialogAuth : " + e.getMessage());
}
}
};
new Thread(runnable).start();
}