2 Replies Latest reply on Sep 28, 2011 12:43 PM by paulhart83

    Android Custom URL Protocol

    paulhart83 Level 1

      Hello:

       

      Is there a way to setup a custom URL protocol for an Adobe Air app on an Android table? For example if you have a link in a web site like "myapp://sync", when you click it the app would open and you could check the params?

       

      Thanks!

        • 1. Re: Android Custom URL Protocol
          paulhart83 Level 1

          I am sure it has to do with the manafest.xml. I am able to get the browser to switch to the app but then it crashes and says "force close"

           

          <application android:enabled="true">

           

                                                      <activity android:name="com.myapp.launch">

                                                                <intent-filter>

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

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

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

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

                                                                    <data android:scheme="myapp" android:host="app" />

                                                                </intent-filter>

                                                            </activity>

           

                                                  </application>

           

          What am I doing wrong?

          • 2. Re: Android Custom URL Protocol
            paulhart83 Level 1

            Figured it out:

             

            <application>

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

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

                                        <data android:scheme="myapp"/>

                                    </intent-filter>

                                </activity>

                            </application>