View.getDisplay()
was added in API level 17, that is Android 4.2. You probably are executing the code on a device with a previous version. You or some library probably calls getDisplay()
at some point only in devices with 4.2+ but the device VM sees the call on some code path, and it doesn't know about that method, so it replaces it.
But you app is not crashing due to getDisplay()
but because on line 70 you are calling Activity.requestWindowFeature
after you have called setContentView
. At least that is what the StackTrace says.