Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out what hardware requirements my Android application has?

hope my question doesn't sound much awkward. I have Android application which runs fine on many Android phones. However, I've just found out that on my friend's Samsung Galaxy Mini (S5570) it won't even find my app in Android Market. When I use direct link to my app in Market, it says that the App is not compatible with the phone. I have no idea why ??

I have this in my AndroidManifest.xml file:

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

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk android:minSdkVersion="4"></uses-sdk>

I am not aware of anything what should disable my app from beeing compatible with Samsung Galaxy Mini or maybe other phone I don't know about yet.

Can anybody help me with this strange problem ?

EDIT:

I've checked in Android Market Developer Console and there is more or different set of permissions than I have in my manifest file:

This application is only available to devices with these features, as defined in your application manifest.
Screen layouts: SMALL NORMAL LARGE XLARGE
Required device features
android.hardware.location.network
android.hardware.camera
android.hardware.location
android.hardware.camera.autofocus
android.hardware.touchscreen

I think that android.hardware.camera.autofocus might probably the reason for my app not showing in Android Market for certain phones. Anybody has idea how to get rid of this requirement I don't want to have for my app ?

like image 348
Frodik Avatar asked Oct 09 '22 01:10

Frodik


2 Answers

I had the same problem. Samsumg Galaxy Mini is not compatible with "android.permission.CAMERA"

like image 64
Sweet Avatar answered Oct 13 '22 11:10

Sweet


Please see my answer to a similar question here.

In short, run your apk through aapt dump badging, which will tell you exactly which features will be used by the market to determine the availability to devices. Then adjust your manifest file accordingly.

like image 26
Libby Avatar answered Oct 13 '22 12:10

Libby