简体   繁体   中英

How can I support Android Wear for Android >= 4.3 and at the same time mobile phones with Android < 4.3

I have an existing app supporting 4.0 and above, but I'd also like to provide an Android Wear application for devices with 4.3 and above. At the same time I still want to support 4.0 devices. The mobile app needs to talk with wear app so 4.3+ apis would need to be used, that are not existent on 4.0. Is that even possible?

In short, the phone app can support any version you like and the wear app can support 4.4 and up even though you package them in the same apk. However, if the app requires newer API, I would recommend looking at how many of your users that are actually running anything below 4.4 and consider dropping support below 4.4.

Google provided information in their documentation on how to gracefully handle lack of wear capabillity. When creating Google api client, the google api creation will fail.

See paragraph Access the Wearable API in enter link description here

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