OSDN Git Service

Fix alias not found issue.
authorOwen Lin <owenlin@google.com>
Thu, 1 Sep 2011 06:11:19 +0000 (14:11 +0800)
committerOwen Lin <owenlin@google.com>
Thu, 1 Sep 2011 09:51:55 +0000 (17:51 +0800)
Also remove note message in proguard.

Change-Id: I7e15a3b00d7caf32565d035f6c972d302e38d49f

AndroidManifest.xml
proguard.flags

index 7d9bc1a..a5a6421 100644 (file)
              </intent-filter>
         </activity>
 
-        <!-- we add the activity-alias for shortcut backward compatibility -->
-        <activity-alias android:name="com.cooliris.media.Gallery"
-                android:targetActivity="com.android.gallery3d.app.Gallery"
-                android:configChanges="keyboardHidden|orientation|screenSize"
-                android:label="string/app_name">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-            </intent-filter>
-        </activity-alias>
-
         <activity android:name="com.android.gallery3d.app.Gallery" android:label="@string/app_name"
                 android:configChanges="keyboardHidden|orientation|screenSize">
             <intent-filter>
             </intent-filter>
         </activity>
 
+        <!-- we add this activity-alias for shortcut backward compatibility -->
+        <!-- Note: The alias must put after the target activity -->
+        <activity-alias android:name="com.cooliris.media.Gallery"
+                android:targetActivity="com.android.gallery3d.app.Gallery"
+                android:configChanges="keyboardHidden|orientation|screenSize"
+                android:label="string/app_name">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+            </intent-filter>
+        </activity-alias>
+
         <!-- This activity receives USB_DEVICE_ATTACHED Intents and springboards to main Gallery activity. -->
         <activity android:name="com.android.gallery3d.app.UsbDeviceActivity" android:label="@string/app_name"
                 android:taskAffinity=""
index 0df05e3..a8cb363 100644 (file)
@@ -1,3 +1,6 @@
+# Disable the warnings of using dynamic method call in common library.
+-dontnote com.android.gallery3d.common.*
+
 # Keep all classes extended from com.android.gallery3d.common.Entry
 # Since we annotate on the fields and use reflection to create SQL
 # according to those field.