Android - java.lang.IllegalArgumentException Erron when creating Dialog on 2.1 and low android

前端 未结 5 1221
既然无缘
既然无缘 2021-01-23 04:27

I\'m getting the below error message from phones that are SDK version < 8. I just released this app on the android market and prior to release my test phones were a HTC Thun

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-23 04:44

    It is because you are returning null from your onCreateDialog(int id) method (this method is deprecated).

    Instead use this.

提交回复
热议问题