次のコードがあります。
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.Fragment;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_exercises_list);
List<Fragment> fList = new Vector<Fragment>();
fList.add(Fragment.instantiate(this, "All"));
これは致命的な例外です。行fList.add(Fragment.instantiate(this, "All"));
を削除しても問題ありません。それで、何が起こっているのですか?フラグメントの使い方がわからないので、私の問題はヌービーだと思います。