Android应用程序与0的设备兼容 [英] Android app compatible with 0 devices

查看:138
本文介绍了Android应用程序与0的设备兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序<一href="https://play.google.com/store/apps/details?id=com.picturesexperience.camera">https://play.google.com/store/apps/details?id=com.picturesexperience.camera是不属于任何移动设备上可见。没有从APK文件安装的问题(实际上是怎么分配我的应用程序现在),完美地工作,但由于某些原因,谷歌播放不列出来。有什么建议么。

该应用程序使用来自Zxing QR code扫描库,其他一切都是定制codeD。

该应用程序的清单:

 &LT; XML版本=1.0编码=UTF-8&GT?;
&LT;舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    包=com.picturesexperience.camera
    安卓版code =2
    机器人:VERSIONNAME =1.4&GT;

    &LT;使用-SDK安卓的minSdkVersion =8的Andr​​oid版本:targetSdkVersion =10/&GT;

    &LT;使用特征的android:NAME =android.hardware.CAMERA/&GT;
    &LT;使用-权限的Andr​​oid:名称=android.permission.CAMERA/&GT;
    &LT;使用-权限的Andr​​oid:名称=android.permission.INTERNET对/&GT;
    &LT;使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/&GT;

    &lt;应用
        机器人:allowBackup =真
        机器人:图标=@可绘制/ ic_launcher
        机器人:标签=@字符串/ APP_NAME
        机器人:主题=@风格/ AppTheme&GT;
        &LT;活动
            机器人:名称=com.picturesexperience.camera.MainActivity
            机器人:标签=@字符串/ APP_NAME
            机器人:screenOrientation =画像
            机器人:configChanges =方向| keyboardHidden&GT;
            &LT;意向滤光器&gt;
                &lt;作用机器人:名称=android.intent.action.MAIN/&GT;
                &LT;类机器人:名称=android.intent.category.LAUNCHER/&GT;
            &所述; /意图滤光器&gt;
        &LT; /活性GT;
        &LT;活动机器人:CameraActivity名称=机器人:标签=@字符串/ APP_NAME机器人:screenOrientation =画像机器人:configChanges =方向| keyboardHidden/&GT;
        &LT;活动机器人:UploadActivity名称=机器人:标签=@字符串/ APP_NAME机器人:screenOrientation =画像机器人:configChanges =方向| keyboardHidden/&GT;
        &LT;活动机器人:LoginActivity名称=机器人:标签=@字符串/ APP_NAME机器人:screenOrientation =画像机器人:configChanges =方向| keyboardHidden/&GT;
        &LT;活动机器人:PictureViewActivity名称=机器人:标签=@字符串/ APP_NAME机器人:screenOrientation =画像机器人:configChanges =方向| keyboardHidden/&GT;
        &LT;活动机器人:名称=com.google.zxing.client.android.CaptureActivity
            机器人:screenOrientation =风景
            机器人:configChanges =方向| keyboardHidden
            机器人:主题=@安卓风格/ Theme.NoTitleBar.Fullscreen
            机器人:windowSoftInputMode =stateAlwaysHidden&GT;
            &LT;意向滤光器&gt;

    &lt;作用机器人:名称=android.intent.action.MAIN/&GT;
                &LT;类机器人:名称=android.intent.category.DEFAULT/&GT;
            &所述; /意图滤光器&gt;
            &LT;意向滤光器&gt;
                &lt;作用机器人:名称=com.google.zxing.client.android.SCAN/&GT;
                &LT;类机器人:名称=android.intent.category.DEFAULT/&GT;
            &所述; /意图滤光器&gt;
        &LT; /活性GT;
    &LT; /用途&gt;

&LT; /舱单&GT;
 

解决方案

 &LT;使用特征的android:NAME =android.hardware.CAMERA/&GT;
 

...应该是...

 &LT;使用特征的android:NAME =android.hardware.camera/&GT;
 

使用特征是的区分大小写和<一href="http://developer.android.com/guide/topics/manifest/uses-feature-element.html#hw-features">lower案例,所以实际上你,说明你正在使用不上的任何设备存在的功能。

My app https://play.google.com/store/apps/details?id=com.picturesexperience.camera is not visible on any mobile device. Installs with no problem from the APK file (that is actually how I distribute my app right now), works perfectly, but for some reason Google Play doesn't list it. Any suggestions.

The app uses QR code scanning library from Zxing, everything else is custom coded.

The app's manifest:

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

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

    <uses-feature android:name="android.hardware.CAMERA" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.picturesexperience.camera.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:configChanges="orientation|keyboardHidden" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".CameraActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".UploadActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".LoginActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".PictureViewActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name="com.google.zxing.client.android.CaptureActivity"
            android:screenOrientation="landscape"
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            android:windowSoftInputMode="stateAlwaysHidden">
            <intent-filter>

    <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.google.zxing.client.android.SCAN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
    </application>

</manifest>

解决方案

<uses-feature android:name="android.hardware.CAMERA" />

...should be...

<uses-feature android:name="android.hardware.camera" />

The uses-feature is case sensitive and lower case, so in effect you're stating that you're using a feature that does not exist on any device.

这篇关于Android应用程序与0的设备兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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