Yes, I created each activity in both applications. I tried using
intent filters but got a little lost.

Activity A, that I am trying to launch has

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

In Activity B, that I am trying to launch from, I then specified the
intent

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.startActivity(intent);

Do you know what else I would need to specify to make it specific to
my application (when i run this currently, I get a list of all the
applications on the phone)

Thanks


On Jan 15, 12:58 pm, "A T" <[email protected]> wrote:
> Did you create both activities? You could try it using intent filters...
>
>
>
> On Thu, Jan 15, 2009 at 4:18 AM, Bamboo <[email protected]> wrote:
>
> > Yes, the code was successful with the alarm clock. Do you know what I
> > may be missing in my personal application that prevents this from
> > working?
>
> > On Jan 14, 11:47 pm, James Yum <[email protected]> wrote:
> > > Hi,
>
> > > > Intent intent = new Intent();
> > > > intent.setClassName("packageName", "packageName.className"
> > > > intent.startActivity();
>
> > > > (adding the fully qualified activity into the AndroidManafest.xml)
>
> > > That looks right, however I don't think you need to add the activity
> > > to the manifest.
>
> > > Does something like this work for you?
>
> > >       Intent intent = new Intent();
> > >       intent.setClassName("com.android.alarmclock",
> > > "com.android.alarmclock.AlarmClock");
> > >       startActivity(intent);
>
> > > Cheers,
> > > James- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to