Highlighted

Android fullscreen disabled when intent-filter added

Explorer ,
Jun 02, 2015

Copy link to clipboard

Copied

Hi, I want to launch my Android Air app whenever I it receives a custom url scheme.

In order to do that, I add the next text to the manifest

<android>
  <manifestAdditions>
   <![CDATA[

  <manifest android:installLocation="auto">

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

  <application android:enabled="true">

       <activity android:name=".AppEntry">

            <intent-filter>

                 <action android:name="android.intent.action.VIEW" />

                 <category android:name="android.intent.category.DEFAULT" />

                 <category android:name="android.intent.category.BROWSABLE"/>

                 <data android:scheme="testScheme"/>

             </intent-filter>

       </activity>

  </application>

 

 

  </manifest>

  ]]>

   </manifestAdditions>
</android>




It works fine (testScheme://anything opens the app) BUT the autoOrients and fullScreen tags are ignored, I'm seeing the top bar of the application.


Screenshot_2015-06-03-08-49-55.png



As you see, the app is a basic one. Just adding the intent-filter breaks everything.


Do you know where can be the problem? should I report a bug?


thanks!

Ok, solved it

The problem appeared because .AppEntry should not be called directly.

This solved the issue

<application android:enabled="true">

     <activity>

            <intent-filter>

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

                 <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <intent-filter>

                 <action android:name="android.intent.action.VIEW" />

                 <category android:name="android.intent.category.DEFAULT" />

                 <category android:name="android.intent.category.BROWSABLE"/>

                 <data android:scheme="testScheme"/>

            </intent-filter>

     </activity>

  </application>

TOPICS
Development

Views

306

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Android fullscreen disabled when intent-filter added

Explorer ,
Jun 02, 2015

Copy link to clipboard

Copied

Hi, I want to launch my Android Air app whenever I it receives a custom url scheme.

In order to do that, I add the next text to the manifest

<android>
  <manifestAdditions>
   <![CDATA[

  <manifest android:installLocation="auto">

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

  <application android:enabled="true">

       <activity android:name=".AppEntry">

            <intent-filter>

                 <action android:name="android.intent.action.VIEW" />

                 <category android:name="android.intent.category.DEFAULT" />

                 <category android:name="android.intent.category.BROWSABLE"/>

                 <data android:scheme="testScheme"/>

             </intent-filter>

       </activity>

  </application>

 

 

  </manifest>

  ]]>

   </manifestAdditions>
</android>




It works fine (testScheme://anything opens the app) BUT the autoOrients and fullScreen tags are ignored, I'm seeing the top bar of the application.


Screenshot_2015-06-03-08-49-55.png



As you see, the app is a basic one. Just adding the intent-filter breaks everything.


Do you know where can be the problem? should I report a bug?


thanks!

Ok, solved it

The problem appeared because .AppEntry should not be called directly.

This solved the issue

<application android:enabled="true">

     <activity>

            <intent-filter>

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

                 <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <intent-filter>

                 <action android:name="android.intent.action.VIEW" />

                 <category android:name="android.intent.category.DEFAULT" />

                 <category android:name="android.intent.category.BROWSABLE"/>

                 <data android:scheme="testScheme"/>

            </intent-filter>

     </activity>

  </application>

TOPICS
Development

Views

307

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 02, 2015 0
Explorer ,
Jun 03, 2015

Copy link to clipboard

Copied

Ok, solved it

The problem appeared because .AppEntry should not be called directly.

This solved the issue

<application android:enabled="true">

     <activity>

            <intent-filter>

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

                 <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <intent-filter>

                 <action android:name="android.intent.action.VIEW" />

                 <category android:name="android.intent.category.DEFAULT" />

                 <category android:name="android.intent.category.BROWSABLE"/>

                 <data android:scheme="testScheme"/>

            </intent-filter>

     </activity>

  </application>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 03, 2015 1