Android SDK error: Trying instantiate a class that is not a fragment
I am hardly trying to create a simple application with a top menu and a changeable view below (by pressing the buttons in the menu fragment we change the view of the fragment below). So, I have 2 fragments inside the main view but when trying to run the application in the emulator I get an error like: Cause by android.app (bla bla bla, piece of crap Eclipse doesn't even allow copying the errors): Trying to instantiate a class com.example.android.topmenu that is not a fragment So, these are my XML layouts: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http:/