Key Index does not save


#1

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){
super.onCreate(savedInstanceState);

If (savedInstanceState != null){

mCurrentIndex = savedInstanceState.getInt(KEY_INDEX);
}

public void onSaveInstanceState (Bundle savedInstanceState){
super.onSaveInstanceState(savedInstanceState);

savedInstanceState.putInt(KEY_INDEX,mCurrentIndex);
}[/code]

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