0

i need an Activity in my Widget Provider. Is there any way to realize that? The problem is: I want to write a little Facebook Widget but: The Facebook API needs an Activity in the Authorize Function... without this function i get an Facebook Error. Xan i call a Object in my Activity from this Widget ? Or, can i "share" this Object global?

Facebook facebook = new Facebook("X X X");
facebook.authorize(this, new String[] {}, new DialogListener() { });

https://developers.facebook.com/docs/reference/androidsdk/authentication/

4

1 回答 1

0

Facebook api 需要一个 Activity 来显示带有身份验证的对话框,您应该在您的应用中创建一个 Activity 并启动它以显示身份验证对话框。

于 2012-08-16T13:07:26.817 回答