Niels
Niels

Reputation: 49919

Android Develop Application not visible in applications

I have make an Android app, normally it is visible in my Apps screen. But this time I can not find it. My normal steps:

When I go to settings -> Applications manager -> my app is visible.

Did I remove something from my Manifest? Any suggestions?

Manyfest withouth classnames:

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

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

    <uses-sdk android:targetSdkVersion="16" android:minSdkVersion="7"/>

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.FLASHLIGHT"/>
    <uses-permission android:name="android.permission.BLUETOOTH" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" android:hardwareAccelerated="true">
        <activity
            android:name="com.example.WebPageActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:label="@string/app_name"
            android:theme="@style/FullscreenTheme"
            android:hardwareAccelerated="true" >

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <!--                  <action android:name="android.intent.action.VIEW" /> -->
                <category android:name="android.intent.category.LAUNCHER" />

                <data android:scheme="http"
                      android:host="MYDOMAIN"
                      android:pathPrefix="" />
            </intent-filter>
        </activity>

        <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>

Upvotes: 1

Views: 292

Answers (1)

Melquiades
Melquiades

Reputation: 8598

The issue is with this:

<data android:scheme="http"
    android:host="MYDOMAIN"
    android:pathPrefix="" />

If commented, your app icon will appear in the launcher.

From the docs:

android:host

Note: host name matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, you should always specify host names using lowercase letters.

More in the docs here, here and here.

That being said, I don't know what exactly is wrong with your < data> entry and why it's causing your issue - still trying to fill in the gaps in my knowledge :)

Upvotes: 1

Related Questions