Tuesday, June 29, 2010

[android-developers] Re: Changing MAIN activity mucks up application

Ok, well for the sake of completeness, here's the solution in case
someone else has the problem.


You need to keep your old application entry in the manifest, and
include a 'MAIN' clause for it. And then the old class itself needs to
be kept, and just launches an intent for the proper main class.

<activity android:name="Splash"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

Then, the old program icon still has something to point at.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate