Skip to main content
Known Participant
October 19, 2012
Question

Complete action using..( invoke app )

  • October 19, 2012
  • 1 reply
  • 749 views

For an Air for Android app, how do you get a link in an email to give the user the option to open an app?

I have looked at: http://www.riaspace.com/2011/08/defining-custom-url-schemes-for-your-air-mobile-applications/

but it does not work.

Maybe things have changed since then? If it still does, does anyone have a complete -app.xml to show?

Also, a link which opens the app.

Otherwise, what is the method?

Ideally, if the app is installed, the link would open it and pass parameters.

If the app is Not installed, it would link to the installer.

Thanks in advance.

This topic has been closed for replies.

1 reply

DachFlachAuthor
Known Participant
October 19, 2012

I have found this to work:

<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.BROWSABLE"/>

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

<data android:scheme="http" android:host="somedomain.com"/>

</intent-filter>

Gives option to open with app or in browser.

Not 100% ideal as I would like it to NOT give the option to open in browser, if possible.