我想我的应用程序可为手机和平板电脑。手机和平板电脑版本之间的唯一区别是:在手机版本,我的应用程序有按钮,这允许打个电话到一定数量。 什么是我的问题:能够进行电话我需要添加一个权限清单文件 -
I want my app to be available for both phones and tablets. The only difference between phone and tablet versions is: in "phone" version my app has buttons, which allow to make a phone call to a certain number. What is my problem: to be able to make phone call I need to add a permission to manifest file -
<uses-permission android:name="android.permission.CALL_PHONE" />
这个许可使得应用程序与平板电脑不兼容。如果我删除的权限,应用程序不能拨打电话正在手机上推出。如何使一个应用程序,同时支持手机和平板电脑,并允许进行从手机电话?
This permission makes application incompatible with tablets. If I remove the permission, app cant make calls being launched on phone. How to make an app, that supports both phones and tablets and allows to make calls from phones?
请参考这个问题,android.permission.CALL_PHONE对于平板电脑的,Phone应用通常使用平板电脑工作,如果你面对的问题考虑释放和两个不同版本的应用程序之一的手机另一个用于平板电脑。
Please refer this question, android.permission.CALL_PHONE for tablets, Phone apps usually work with tablets, if you face problem consider releasing two different version of application one for phone and another for tablet.