App not showing up?

我的梦境 提交于 2019-12-24 12:31:19

问题


My app isn't showing up on google play store for some phones, like the Samsung GT-S5830i I don't know whether it is because of my <uses-permission> or my min SDK or my Screen Size permissions.

After seeing this I made all of my <uses-permission> into <uses-feature> and added android:required="false" to every permission. Now, I need to check feature availability in my java code since the permissions are optional, so that I can avoid a java.lang.SecurityException: Permission Denial How would I do that in my following permissions:

 <uses-feature android:name="android.permission.MODIFY_AUDIO_SETTINGS" android:required="false" />
    <uses-feature android:name="android.permission.VIBRATE" android:required="false" />
    <uses-feature android:name="android.permission.READ_PHONE_STATE"  />
    <uses-feature android:name="android.permission.GET_TASKS" />
    <uses-feature android:name="android.permission.INTERNET" android:required="false"/>

I'm pretty sure that all phones and tablets can go through with my permissions, so I don't even think that I need to make it feature and add the required="false". If it is not the permissions, it could be the Screen Size permissions.

Should I do something like this in my manifest?

 <compatible-screens>
            <screen
                android:screenDensity="ldpi"
                android:screenSize="small" />
        <screen
            android:screenDensity="mdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="xlarge" />
    </compatible-screens>

Currently, I have this:

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

Could it be because of the SDK?

Thanks for telling me whether it is because of the permissions, the SDK, or the screen size, and what I should do to keep some of the permissions optional,

Ruchir


回答1:


from comment your min-sdk level is 11, that means your app needs minimum of andriod 3.0 (Honeycomb) and the phone you're tested is samsung GT-s5830i which comes with android froyo, (version 2.2) and it's API level is 8, so it wont be displayed in playstore for that device. to support for that phone you have decrement your minimum api level, read about API level and os version from here. and read this link to know more about play store filtering



来源:https://stackoverflow.com/questions/34170901/app-not-showing-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!