Key Index does not save


I followed the instructions in the book to create my save instance but the application restarts from the start instead of loading the Current Index.
I have no errors, here is the code :

[code]onCreate ( Bundle savedInstanceState){

If (savedInstanceState != null){

mCurrentIndex = savedInstanceState.getInt(KEY_INDEX);

public void onSaveInstanceState (Bundle savedInstanceState){


I do get a warning in log Cat that says ," EGL_emulation eglSurfaceAttrib not implemented "