本文介绍了设备的兼容性问题,三星Galaxy迷你的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android Market所报告的不可比性的应用程序,因此无法在三星Galaxy迷你装。开发者控制台说,这是由于我的清单设置。

我的表现很轻:安卓1.5以上,裸露的骨头权限,所以我很惊讶,这就是问题所在。

我的问题是两部分:

  1. 是否有任何工具来帮助诊断设备和应用程序的兼容性。

  2. 什么是我的清单中的问题?

下面是我的清单

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
  包=com.basl.bugsy.free
  安卓版code =8
  机器人:VERSIONNAME =8
  INSTALLLOCATION =preferExternal>

    <应用机器人:图标=@可绘制/图标机器人:标签=@字符串/ APP_NAME>
      <活动机器人:名称=。BugsyFreeGame
              机器人:标签=@字符串/ APP_NAME
            机器人:screenOrientation =画像>
            <意向滤光器>
                <作用机器人:名称=android.intent.action.MAIN/>
                <类机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
        < /活性GT;
    < /用途>
    <使用-SDK安卓的minSdkVersion =3安卓targetSdkVersion =3/>
    <使用-权限的Andr​​oid:名称=android.permission.WAKE_LOCK/>
    <使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/>
    <使用-权限的Andr​​oid:名称=android.permission.INTERNET对/>
< /舱单>
 

解决方案

尝试 MOTODEV的App验证。他们不会告诉你,你将有问题的三星Galaxy迷你,但如果你的问题与迷你也会导致问题的一些摩托罗拉的设备,错误它会告诉你可以帮助清除了。

三星Galaxy迷你可考虑小屏幕设备。尝试添加<支持屏> 元素宣布具体是什么屏幕尺寸您的支持,其中包括小屏幕

此外,请认真考虑你的<使用-SDK> 元素,尤其是你的选择安卓targetSdkVersion 。您的应用程序会显得落伍在Android 3.0+设备,并且已经有更多的这些之外还有了Android 1.5(即,API等级3)设备。如果设置安卓targetSdkVersion 11 或更高,你的应用程序将仍然运行在较旧的设备,但你会采取蜂窝状的外观和感觉(全息主题,窗口小部件,操作栏等),这将使您的应用程序看起来像它属于在较新的设备。

I have an app in the android market that is reporting incomparability and so cannot be installed on a Samsung Galaxy Mini. Developer Console says that it is due to my manifest settings.

My manifest is very light : android 1.5 or above and bare bones permissions so I'm surprised that this is the problem.

My question is in 2 parts:

  1. Are there any tools to help diagnose device and app compatibility.

  2. What is the problem with my manifest?

Here is my manifest

 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.basl.bugsy.free"
  android:versionCode="8"
  android:versionName="8"
  installLocation="preferExternal">

    <application android:icon="@drawable/icon" android:label="@string/app_name">
      <activity android:name=".BugsyFreeGame"
              android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="3" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>
解决方案

Try MOTODEV's App Validator. They won't tell you that you will have problems with the Samsung Galaxy Mini, but if your problems with the Mini would also cause problems with some Motorola device, the errors it tells you may help clear that up.

The Samsung Galaxy Mini may be considered a small-screen device. Try adding a <supports-screens> element declaring specifically what screen sizes you support, including small screens.

Also, please seriously reconsider your <uses-sdk> element, particularly your chosen android:targetSdkVersion. Your app will look out of date on Android 3.0+ devices, and there are already more of those than there are Android 1.5 (a.k.a., API Level 3) devices. If you set android:targetSdkVersion to 11 or higher, your app will still run on older devices, but you will adopt the Honeycomb look-and-feel (holographic theme for widgets, action bar, etc.), which will make your app look like it belongs on the newer devices.

这篇关于设备的兼容性问题,三星Galaxy迷你的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 07:57