加入Android Wear模块到我的应用 [英] Add Android Wear Module To My App

查看:149
本文介绍了加入Android Wear模块到我的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要让当您从Play商店安装到手机的应用程序,将被安装在Android Wear。

I want to make an Android Wear that will be installed when you install the Phone's app from the play store.

我环顾四周,发现,要做到这一点的方法是创建新的Andr​​oid Wear模块,并建立它。

I looked around and found that the way to do this is to create new Android Wear Module and build it there.

不过,我有一个问题。由于手机模块的最小SDK是13和磨损最小SDK必须是20(4.4W),我无法在手机上安装应用程序本身,只有在观看。

But, I have a problem with that. Because the phone module minimum SDK is 13 and the Wear Minimum SDK must be 20 (4.4W), I can't install the app itself on my phone, Only on the watch.

我怎样才能解决这个工作?
谢谢(而关于对不起我没有那么好的英语)。

How can I fix this to work? Thanks (And sorry about my not-so-good english).

推荐答案

电话的minSdkVersion 应保持不变(因为它是 - 你的情况13)。应用程序的可穿戴的一部分应该有的minSdkVersion 设置为20,但这不是一个问题 - 可穿戴的应用程序将不会在您的手机上安装(仅限于手表)。

The phone minSdkVersion should stay the same (as it was - 13 in your case). The Wearable "part" of app should have minSdkVersion set to 20, but this is not a problem - Wearable app won't be installed on your phone (only on watch).

手机APK只是持有耐磨APK里面,但耐磨APK不会以任何方式影响手机应用程序。
该穿戴式应用增加(现有的手机应用程序)的唯一限制是手机应用程序清单应包括可穿戴式应用程序清单中声明的​​所有权限。这是因为用户必须同意在一次使用所有权限(通过既应用程序)。

Phone apk just holds the wearable apk inside, but wearable apk doesn't affect phone app in any way. The only constraint that wearable app adds (to the existing phone app) is that phone app manifest should include all permissions declared in wearable app manifest. That is because user have to agree for using all permissions (by "both" apps) at once.

这篇关于加入Android Wear模块到我的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆