How to get Wear OS version provide by google?

137 Views Asked by At

I am a android developer and i have devloped a application for wear watch, but i need to find current version of wearOS which are provide by google(Not a Home version) . How to get programatically wearOS version in in my devlopment code. For better understanding you can see my attechment.[enter image description here](https://i.stack.imgur.com/j6aE5.png)

I am using below code in my devlopement code

val info: PackageInfo = packageManager.getPackageInfo(
    "com.google.android.wearable.app",
    0
)
return info.versionName
0

There are 0 best solutions below