Skip to main content
Participant
April 2, 2012
Answered

adobe air 3.2.0 android - custom uri issue

  • April 2, 2012
  • 5 replies
  • 2194 views

Custom URIs are no longer registered/handled by the adobe air wrapper on android devices.

Tested on evo4g with android 2.3.5  and galaxy tab with android 3.2.

How to reproduce:

create your apk with adt having these settings in your application.xml / android / manifestAdditions / manifest / application:

<activity android:name="helpNav">

  <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:mimeType="application/pdf" />

  </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="http" android:host="www.this-so-does-not-exist.com" android:path="/something" />

  </intent-filter>

</activity>

How to test:

Open the browser and navigate to http://commonsware.com/sample and click any of the given links. Your air application will not be presented as an intent provider.

More traces captured with DDMS:

04-02 19:47:06.602: I/ActivityManager(128): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.this-so-does-not-exist.com/something cmp=android/com.android.internal.app.ResolverActivity } from pid 10018

Simple schemes like <data android:scheme="myscheme" /> dont work anymore either.

Any advice greately appreciated.

Kind regards.

This topic has been closed for replies.
Correct answer Calin Brandabur

you can mark this as bogus. Just noticed there are 2 application tags in the same app descriptor and the installer picks up only the first one.

5 replies

Calin BrandaburAuthorCorrect answer
Participant
April 9, 2012

you can mark this as bogus. Just noticed there are 2 application tags in the same app descriptor and the installer picks up only the first one.

chris.campbell
Legend
April 9, 2012

Thanks for the heads up.  I've closed the bug.

Participant
April 9, 2012

I have narrowed down the bug to this node:
<application android:hardwareAccelerated="true"/>


Once this setting is added to application.xml / application / android / manifestAdditions / manifest none of the intent filters are working.

Full application.xml pasted at http://pastebin.com/xyCKsn36 (see line 30).

Sample APK uploaded at: http://helpnav.com/bin/HelloWorld.apk

How to replicate:
- install the provided apk, open Browser and type in helloworld:

Expected result: Application should be launched

Actual result: intent provider not found so the search intent kicks in.

Participant
April 2, 2012
chris.campbell
Legend
April 3, 2012

Thank you for adding this bug!  I'd like to recommend anyone else affected by this issue to take a minute and visit Calin's bug and cast your vote.

Chris