O método getFragmentManager () é indefinido para o tipo MyActivity

Desde que eu tenho usado o meu código, eu usei fragmentos.

Para fazer isso, eu tenho uma atividade chamando um fragmento usando um fragmento por tag:

FluxListFragment FLF = (FluxListFragment) getFragmentManager().findFragmentByTag(FRAG_LIST);

Mas desde hoje, o getFragmentManager parece não ser reconhecido. Diz :

"The method getFragmentManager() is undefined for the type FluxMainActivity"

O problema está vindo do alvo de compilação? (Eu coloquei o Android 3.0)

Aqui está o código:

public Class FluxMainActivity extends Activity {

@override
public void onCreate(Bundle saveInstanceState)
{
    super.onCreate();
    setContentView(R.layout.main);
    FluxListeFragment FLF = (FluxListeFragment)getFragmentManager().findFragmentByTag(FRAG_LISTE);    
}

}

O método deve estar vinculado ao FluxListeFragment e não ao FluxMainActivity! Eu acho que o elenco está incorreto.

questionAnswers(1)

yourAnswerToTheQuestion