目前正在进行android开发,但我错误地覆盖了onCreate(Bundle, PersistableBundle)而不是简单地onCreate(Bundle),因此活动不会启动。我通过使用正确的重载来修复它,这很难找到,但这是另一回事。
onCreate(Bundle, PersistableBundle)
onCreate(Bundle)
我的问题是:为什么那不起作用?为什么覆盖 onCreate(Bundle, PeristableBundle) 不起作用,即为什么不调用它以及为什么覆盖其他重载起作用?
java android intellij-idea android-activity android-studio
android ×1
android-activity ×1
android-studio ×1
intellij-idea ×1
java ×1