Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: My app supports 0 devices

Tags:

android

You know, I'm really disappointed right now. I spent the last 5 months making this app, from design to coding a..z and now I'm this close: my app supports 0 devices.

Then I spent almost 24 hours already trying to figure out what the heck is going on and still couldn't get it working. I need help.

p.s: The "Localizations: default+49 languages" field: in my app I only have English with the default values/strings.xml but I don't mind users in other languages on their phone will see my app in English.

UPDATE: Found and added my clarified answer, however the accepted answer got me going the right way. So thank you.

Here is what I got:

enter image description here

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

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

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

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

    <application
        android:hardwareAccelerated="true"        
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Holo.Theme"
        android:name="org.holoeverywhere.app.Application">

        <!-- Blank Activity -->
        <activity            
            android:name=".BlankActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Access Activity -->
        <activity                                    
            android:name=".AccessActivity"
            android:label="@string/title_activity_access"             
            android:screenOrientation="portrait">
        </activity>

        <!-- Register Activity -->
        <activity                        
            android:name=".RegisterActivity"
            android:screenOrientation="portrait"            
            android:label="@string/lbActRegister">
        </activity>

        <!-- Login Activity -->
        <activity                        
            android:name=".LoginActivity"
            android:screenOrientation="portrait"            
            android:label="@string/lbActLogin">
        </activity>

        <!-- Recovery Activity -->
        <activity            
            android:name=".RecoveryActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActRecovery">
        </activity>

        <!-- Dashboard Activity -->
        <activity                                    
            android:name=".DashboardActivity"
            android:label="@string/app_name"
            android:launchMode="singleTop"             
            android:screenOrientation="portrait"
            android:configChanges="orientation|keyboardHidden|screenSize">
        </activity>

        <!-- Edit Profile Activity -->
        <activity            
            android:name=".EditProfileActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActEditProfile">
        </activity>

        <!-- Feedback Activity -->
        <activity            
            android:name=".FeedbackActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActFeedback">
        </activity>

        <!-- TOSU Activity -->
        <activity            
            android:name=".TOSUActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActTerms">
        </activity>

        <!-- About Activity -->
        <activity            
            android:name=".AboutActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActAbout">
        </activity>

        <!-- Donation Activity -->
        <activity            
            android:name=".DonationActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActDonation">
        </activity>

        <!-- Image Upload Activity -->
        <activity                        
            android:name=".photo.ImageUploadActivity"
            android:screenOrientation="portrait"
            android:label="@string/lbActUpload" 
            android:configChanges="orientation|keyboardHidden|screenSize">
        </activity>

        <!-- Me Detail Activity -->
        <activity            
            android:name=".photo.MeDetailActivity"
            android:label="@string/lbActCollection"
            android:parentActivityName=".DashboardActivity"            
            android:configChanges="orientation|keyboardHidden|screenSize">

            <meta-data android:name="android.support.PARENT_ACTIVITY"
                       android:value=".DashboardActivity" />
        </activity>

        <!-- Explore Detail Activity -->
        <activity            
            android:name=".photo.ExploreDetailActivity"
            android:label="@string/lbActExplore"
            android:parentActivityName=".DashboardActivity"            
            android:uiOptions="splitActionBarWhenNarrow"
            android:configChanges="orientation|keyboardHidden|screenSize">

            <meta-data android:name="android.support.PARENT_ACTIVITY"
                       android:value=".DashboardActivity" />
        </activity>

        <!-- Liked Detail Activity -->
        <activity            
            android:name=".photo.LikedDetailActivity"
            android:label="@string/lbActLikes"
            android:parentActivityName=".DashboardActivity"            
            android:configChanges="orientation|keyboardHidden|screenSize">

            <meta-data android:name="android.support.PARENT_ACTIVITY"
                       android:value=".DashboardActivity" />
        </activity>

    </application>

</manifest>
like image 204
jerrytouille Avatar asked May 10 '13 13:05

jerrytouille


People also ask

What does it mean on Google Play when it says you don't have any devices?

You may receive this error message when you sign in to the Google Play website with a different Google account than that your Android device uses. Please make sure that you sign in with the correct Google account.

How do you limit which Android devices can download your app?

Select the Excluded devices tab. Next to "Exclusion rules," select Manage exclusion rules. Don't exclude Android Go devices: Selected by default. Exclude Android Go devices: Prevent devices running Android Oreo (Go edition) from installing your app on Google Play.

How do I know if an app is compatible with my Android?

After deciding which change you want to test against, you can toggle that change on or off using the developer options. To get to the developer options, open your device's Settings app and navigate to System > Advanced > Developer options > App Compatibility Changes.


1 Answers

Try to change android.hardware.CAMERA with android.hardware.camera. Then

For any of the permissions below, you can disable filtering based on the implied feature by explicitly declaring the implied feature explicitly, in a element, with an android:required="false" attribute.

And according to the permissions features, you didn't add the feature android.hardware.camera.autofocus.

So add this feature or change your camera permission with :

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

Hope it works :)

like image 94
Alexis C. Avatar answered Nov 11 '22 11:11

Alexis C.