[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-20 Thread tek
WOW it took me _forever_ to figure out exactlly what you meant... Here is the manifest section needed for anyone needing help here. application android:icon=@drawable/icon android:label=@string/ app_name activity android:taskAffinity=org.appname.act1

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread Dianne Hackborn
If you want two fully distinct apps, you need to give them different task affinities. Please read this before you go farther: http://code.google.com/android/intro/appmodel.html On Thu, Feb 5, 2009 at 7:56 AM, tauntz tau...@gmail.com wrote: On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
Thanks Dianne. Just for the record (if someone else needs the solution and finds this thread): If you want to have two different applications in one .apk then you need to have both launcher Activities with the LAUNCHER category as Romain said. You also need to add different task affinities to

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-03 Thread Romain Guy
Yes :) Just put two activities in your manifest, both with the LAUNCHER category. On Mon, Feb 2, 2009 at 10:45 PM, j jac...@gmail.com wrote: I need to have 2 launcher activities (i.e. 2 icons on the home screen). Each launch icon would launch a separate activity. Essentially, I need a single