What is the use of the second implementation of the onCreate method in Android actions?

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?

+5
source share

Source: https://habr.com/ru/post/1259282/


All Articles