Are you trying to start arbitrary applications?  I'm not sure how you
might do that.  What information do you have about the app you are
trying to start?

TreKing is just right.  If you are trying to make it so that *your*
app can be launched, you just need to publish the intent that will
launch it.  The Android standard for doing this with ContentProviders
is a Contract class.  I would think you could do something similar for
your app...

If you are trying to launch some specific other app, just hardcode the
Intent for that app.

G. Blake Meike
Marakana

The second edition of Programming Android is now on-line:
http://shop.oreilly.com/product/0636920023005.do



On May 24, 9:22 pm, TreKing <[email protected]> wrote:
> On Thu, May 24, 2012 at 7:27 PM, Ubuntu guy <[email protected]> wrote:
> >  I'm trying to start a service from an activity using the intent action
> > specified in the Android Manifest.
>
> That's not what that's for. The intent information in the manifest is for
> the system to find components that match a given intent.
> Instead of hard-coding your action, just use a standard, pre-defined one.
> Or create a constant for yours if it is a custom action.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to