Thanks for the links Don - it's been a while since I read them :)
Ok - then it appears that to consume an Activity, the class can be
very simple along the lines of startActivity, startActivityForResult
and an onActivityResult for any results.
To start with any of the simple standard Android Activities can be
used for testing. Something early and iterative is better than too
much planning. We're not sure yet what issues will come up around
security & permissions or performance.
As things progress then some kind of activity browser - packageManager
query() would be helpful - it's something people can use easily just
to sanity check what they're doing and it'll come in handy later when
people start publishing their own activities to check what's going on.
On May 11, 6:07 pm, Don Thorp <
dth...@appcelerator.com> wrote:
> Let me add couple of reference links and some background.
>
> Intents and Intent Filters:
http://developer.android.com/guide/topics/intents/intents-filters.html
> OpenIntents:
http://www.openintents.org/en/
>
> android.content.Intent:
http://developer.android.com/reference/android/content/Intent.html
>
> One thing to keep in mind is that all devices will not have the same set of
> intents. Standard intents are most likely supported but not always. For
> example, if you haven't set up an email account, the intent we use for
> EmailDialog will not be able to send.
>
> We'll probably get the most bang for the buck with Activity intents to
> start. Those basically come in two forms. Fire and forget, and Fire for
> result. Launching a URL for telephone is a fire and forget intent we use in
> Titanium. Obtaining a photo is an example of a fire for result.
>
> Intents are configured via an embedded Bundle which is basically a
> serializable hash. The data used to configure an intent must usually be
> marshalled from one process to another. A generic intent may be possible. It
> might result in an easier API if there were proxies for common Intents that
> hid some of the complexity.
>
> A bigger step, is to allow Titanium applications to publish their own
> intents. To support this feature, we'll need to extend the build tools to
> allow injecting configuration information for the intent into the
> AndroidManifest.xml.
>
> What might be useful is for folks to post ideas about what you want to
> accomplish with specific intents and start iterating to and API from there.
>
> On Tue, May 11, 2010 at 10:41 AM, David (dasher) <
onlydas...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Great to see the thread Don!
>
> > I'm pretty green around Intents so excuse the ignorance.
>
> > First thoughts - assuming there is a generic approach without needing
> > a proxy interface for each Intent you want to use: listAvailable,
> > hasIntent, connectIntent & disconnectIntent
>
> > David
>
> > On May 11, 5:01 pm, donthorp <
dth...@appcelerator.com> wrote:
> > > There have been several requests for an Intents module for Android.
> > > I'm opening up this thread so we can explore what that module's API
> > > should be.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "Appcelerator Titanium" group.
> > > To post to this group, send email to
> >
appcelerat...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> >
appcelerator-tit...@googlegroups.com<appcelerator-titanium%2B
unsub...@googlegroups.com>
> > .
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Appcelerator Titanium" group.
> > To post to this group, send email to
> >
appcelerat...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
appcelerator-tit...@googlegroups.com<appcelerator-titanium%2B
unsub...@googlegroups.com>
> > .