首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android应用程序:我的声明接受所有屏幕大小,但三星GT-S6500D不能安装它

Android应用程序:我的声明接受所有屏幕大小,但三星GT-S6500D不能安装它
EN

Stack Overflow用户
提问于 2013-07-24 02:29:16
回答 1查看 542关注 0票数 0

我在Google商店有一个应用程序。我已经设置了清单,以便对于屏幕大小,它可以接受小、中、大和特大(所有屏幕大小)。这个应用程序可以安装在我在手机和平板电脑上遇到的任何东西上,除非现在有人提到他们的三星mini 2(三星GT-S6500D)不允许他们安装它。它告诉他们,应用程序与他们的设备不兼容。

我已经证实他们运行的是Android2.3.6,我的应用程序适用于任何2.3.3或更低的用户。

我还被告知三星Galaxy Tab 2不兼容。为什么会发生这种事?

有什么东西是我遗漏的,允许所有手机/平板电脑使用我的应用程序?

这是我的宣言:

代码语言:javascript
运行
复制
   <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="xxx"
      android:versionCode="xx"
      android:versionName="xx">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
    <uses-permission android:name="android.permission.CAMERA" />

    <supports-screens 
                      android:smallScreens="true"
                      android:normalScreens="true"
                      android:largeScreens="true"
                      android:xlargeScreens="true"
                      />
    <application android:icon="@drawable/icon" android:allowBackup="true">
        <activity android:name=".ItineraryHomeActivity"
                     android:theme="@android:style/Theme.NoTitleBar"
                  android:label="@string/app_name"
                  >
                  <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />   
                </intent-filter>
                <intent-filter>
                  <action android:name="android.intent.action.VIEW" />
                  <category android:name="android.intent.category.DEFAULT" />
                  <data android:scheme="file" />
                  <data android:host="*" />
                  <data android:port="*" />
                  <data android:mimeType="*/*" />
                  <data android:pathPattern=".*\\.tgtp" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
                    <category android:name="android.intent.category.DEFAULT" />
                    <category android:name="android.intent.category.BROWSABLE" />
                    <data android:mimeType="text/xml" />
                 </intent-filter>

        </activity>

        <activity android:name=".EditHomeItListActivity" android:configChanges="keyboardHidden|orientation" android:label="@string/itinerary_title"
        android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="stateUnchanged"
         />

    </application>
</manifest>  

这难道不应该让每一个运行2.3.3以上的android设备都可以使用这个应用程序吗?

EN

Stack Overflow用户

回答已采纳

发布于 2013-07-26 12:33:40

我想通了。在google play商店里,你需要获得相机许可的那条线被用作过滤器:

代码语言:javascript
运行
复制
<uses-permission android:name="android.permission.CAMERA" />

我不知道为什么会这样,因为所有没有工作的手机/平板电脑都有摄像头.但是,解决方法是将其改为“”标记,而不是使其成为必需的:

代码语言:javascript
运行
复制
 <uses-permission android:name="android.permission.CAMERA" />

希望这能帮到别人

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17824240

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档