0

I just imported the Facebook library for Android and according to their tutorials, what I see is that I have to add this to every Activity:

@Override
public void onResume ()
{
    super.onResume();

    Settings.publishInstallAsync ( getApplicationContext( ) , "app_id" );
}

Is that correct? Or is there something extra I have to do in the code? And does it have to be only in the first activity? Or every activity?

Thank you!

4

1 回答 1

1

您只需要在您的主要活动(启动您的应用程序的活动)中调用它。

于 2013-05-01T15:33:26.057 回答