On Tue, Jul 19, 2011 at 1:13 PM, Glen Cook <[email protected]> wrote: > I've found an intent for accomplishing this: > intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
Any time you find yourself typing or pasting "com.android", understand that what you are doing is not documented, not supported, and may not work on all home screens. > I'm now wondering if it is possible to detect if a particular short- > cut exists on the user's home screen. Nope. Again, you have no idea if the home screen in question even has the notion of "shortcuts". Please, simply allow the user to launch your application from your launcher activity, and the user can add a shortcut and/or install an app widget if they so choose. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

