I have a problem with my fragment and onitemclicklistener. When I run the app it shows me a list but when I click on such the app crashes. Can someone see what could be the reason for such to be hapenning?
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View result = inflater.inflate(R.layout.fragment_movie, container, false);
listView = (ListView) result.findViewById(R.id.list);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent(getActivity(), MovieDetailActivity.class);
intent.putExtra("MOVIE_DETAILS", (MovieDetails) parent.getItemAtPosition(position));
startActivity(intent);
}
});
}
Process: com.vjezba.androidtab.tabswitch, PID: 10943 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.vjezba.androidtab.tabswitch/com.vjezba.androidtab.tabswitch.MovieDetailActivity}; have you declared this activity in your AndroidManifest.xml?