如何让我的应用程序都看得到的所有设备和平板电脑? [英] How to make my application visibile for all devices and tablets?

查看:149
本文介绍了如何让我的应用程序都看得到的所有设备和平板电脑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Andr​​oid应用程序具有的功能挑联系人,位置上市,获得传入和放大器;呼出电话等..这里是清单文件

My android application have functionality pick contact,location listing,access incoming&outgoing calls etc...Here is the manifest file.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="xxxxx"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="9" />

    <uses-feature
        android:name="android.hardware.telephony"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.location"
        android:required="false" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <application>
        </activity>
        </service>
        </receiver> 
   </application>

</manifest>

我怎样才能为包括平板电脑的所有设备我的应用程序可见?

How can i make my application visible for all devices including Tablets?

如果我设置使用特征要求=假,那么是否有必要使用到code。检查硬件是否存在 getPackageManager()。hasSystemFeature(PackageManager.FEATURE_XXX)

If i set uses-feature required="false" , then is it necessary to check the existence of hardware through code by using getPackageManager().hasSystemFeature(PackageManager.FEATURE_XXX)?

请问code崩溃时用户尝试使用挑选从设备的联系人新意图(Intent.ACTION_PICK,Contacts.CONTENT_URI)不具有联系人应用程序?

Does the code crash when user try to pick contacts from a device using new Intent(Intent.ACTION_PICK,Contacts.CONTENT_URI)which does not have Contacts application?

这是关系到 READ_CONTACTS 许可的功能?

Which is the feature related to READ_CONTACTS permission?

我如何能够有效地处理这一点,因为我使用的广播接收器收听这是从清单从$ C $下烧制,以及和它导致崩溃,如果设备不具备电话功能,接听和拨打电话?

How can i handle this effectively because i used Broadcast Receivers for listening incoming and outgoing calls which is fired from manifest as well as from code and does it lead to crash if the device does not have telephony feature ?

由于提前

推荐答案

有一件事是将 Android的改变:targetSdkVersion =9的东西更新。 18是API acording到Android SDK管理器的最新版本。然后应用程序应该与最新版本可见。当然,你需要检查它的实际工作在这些平台上也是如此。

One thing is to change the android:targetSdkVersion="9" to something newer. 18 is the latest version of the API acording to the Android SDK manager. Then the app should be visible with the newest versions. Of course you need to check that it actually works on those platforms as well.

这篇关于如何让我的应用程序都看得到的所有设备和平板电脑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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