On Thu, Jun 14, 2012 at 6:06 AM, Mark Murphy <[email protected]>wrote:
> It'd be nice if there were a way for app widgets to be identified by a > custom action string in an <intent-filter>, so refactoring could be > easier and less risky, but that's not an available option AFAIK. > Then you have lots of potential problems with people spoofing widgets and such. The ComponentName (which is the package name + complete class name) is the unique, secure way to identify a particular piece of code in an app. You should just consider this stuff you publish in your manifest for others to be use to be public entries into your app that you are committing to. It's basically like the main entry point of an app but allowing you a little more flexibility in specifying it and the ability to have multiple such entry points. And if you really need to refactor your code for some reason, implementing a subclass to continue to have such entry points under the proper name is basically trivial, a bunch of each stuff in the platform to give you another mechanism to avoid this can't make things a whole lot easier. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

