Skip to main content
Participant
Apr 2, 2012 4:50 PM UTC
Answered

adobe air 3.2.0 android - custom uri issue

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 is closed to new replies. Start a new post to keep the conversation going.
Calin BrandaburCorrect answer
Participant
Apr 9, 2012 4:04 PM UTC

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
Apr 9, 2012 4:04 PM UTC

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.

Translate
chris.campbell
Legend
Apr 9, 2012 6:33 PM UTC

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

Translate
Participant
Apr 9, 2012 11:58 AM UTC

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.

Translate
Participant
Apr 2, 2012 5:07 PM UTC
chris.campbell
Legend
Apr 3, 2012 12:50 AM UTC

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

Translate