On Fri, Mar 18, 2011 at 3:04 PM, dashman <[email protected]> wrote:
> the document states that the NAME has to be prefixed with the package
> name.

Really?

> is it really necessary for intra-app intents.

Having them be plausibly unique is a good idea, in case the OS tacks
in extras as well. Using the package name is a good idea, but I doubt
that you will fail with a compile error if you use something else.

> if so, is there a programmatic way of getting the current package
> name.

getPackageName() on any Context.

> also, any limits on the sive of the VALUE arg.

Generally, you want them to be small. This is particularly true for:

-- startActivity() Intents, as they hang around as long as the
activity instance does

-- any that will cross process boundaries, including to the OS system
process (e.g., extras on a PendingIntent used in a Notification or
RemoteViews)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
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