简体   繁体   中英

Android - How can I know model of connected android wear device?

Is it moto 360 , lg g watch or other... How can I get this information in the code in independent android app?

Possible it's duplicate, but I didn't find anything in stackoverflow.

You can use:

String watchModel = Build.MODEL;

on the watch itself and sent this to the phone.

This requires making a android wear activity and starting it on the watch in the background from the phone

Try this:

$ adb shell getprop ro.product.model

output:

SOME_MODEL_NAME_SET_BY_PRODUCER

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM