0

I have a class with a sliding menu. i get the following error when i resume on my activity,when the app is paused!

android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment kostas.menu.rssreader.ListActivity$SampleListFragment: make sure class name exists, is public, and has an empty constructor that is public
menu_on_top
  • 2,613
  • 14
  • 44
  • 71

1 Answers1

0

please notice the error message you got

06-05 16:27:04.215: E/AndroidRuntime(14976): Caused by: java.lang.InstantiationException: can't instantiate class kostas.menu.rssreader.ListActivity$SampleListFragment; no empty constructor

this kinda means you HAVE to have an empty constructor for every Fragment class you create.

just add the empty constructor and everything should be just fine.

thepoosh
  • 12,497
  • 15
  • 73
  • 132