SuperNotCalledExeption onPause()

47 views Asked by At

I am using this example: http://android-er.blogspot.com/2012/07/implement-gallery-like.html but in a fragment and I am getting a SuperNotCalledException for onPause() I used the debugger and it is failing when adding the images to the linear view not really sure why though if someone could help me I will greatly appreciate it :

File[] files = targetDirector.listFiles();

    for (File file : files){
     myGallery.addView(insertPhoto(file.getAbsolutePath()));

    }    
1

There are 1 answers

0
Alex Lockwood On

Make sure you call super.onPause() in your onPause() method.