I always used the onCreate method in my Activity lifecycle to start or restore from a saved state, but recently discovered that there is another onCreate method that contains a PersistableBundle :
@Override public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) { super.onCreate(savedInstanceState, persistentState); }
I just found that it was added with Android 21.
Can someone provide complete information about this method when they call and use?
source share