Retrieving Android API version programmatically

前端 未结 11 2160
长情又很酷
长情又很酷 2020-11-22 04:54

Is there any way to get the API version that the phone is currently running?

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 05:42

    Got it. Its using the getApplicationInfo() method of the Context class.

提交回复
热议问题