我想在Fragment上调用活动。
我能做什么?
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
view = inflater.inflate(R.layout.webfragment, container, false);
layout = (LinearLayout) view.findViewById(R.id.webFragment);
Intent intent = new Intent(view.getContext(), StartActivity.class);
//intent.setClassName(,)
startActivity(intent);
return view;
}
我不想从活动开始活动!