]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
OI Safe: added activity-alias to handle old references to FrontDoor,
authorrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Mon, 5 Apr 2010 00:17:53 +0000 (00:17 +0000)
committerrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Mon, 5 Apr 2010 00:17:53 +0000 (00:17 +0000)
specifically with versions 1.2.4 or earlier if you have an icon to
the Safe on the home page and upgrade to 1.2.5 without the alias,
it won't find the app.   so with the alias it can find it.

git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@2598 72b678ce-9140-0410-bee8-679b907dd61a

AndroidManifest.xml

index 1e7a3a2c279f660ee64f2c9ac48bc1791afe717b..90ce13dc98d74948a4e38b3802843051bdf9ba87 100644 (file)
                        <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>           
         </activity>
-        
+        <!-- alias is to handle versions 1.2.4 and earlier which used to use
+             FrontDoor as the initial activity -->
+        <activity-alias android:label="@string/app_name"
+                android:name="FrontDoor"
+                android:targetActivity="Safe" >
+               <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                       <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>           
+               <intent-filter>
+                <action android:name="org.openintents.action.A" />
+                       <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter> 
+        </activity-alias>
+               
         <activity class=".IntentHandler" android:name="IntentHandler" android:label="@string/app_name"
                   android:permission="org.openintents.safe.ACCESS_INTENTS">
             <intent-filter android:label="@string/intent_encrypt">