Android homescreen shortcut - native part

Part of android homescreen shortcut feature.
Not sure if this is the correct way.  I tried to minimize modification, only add 'shortcutParam' parameter to functions.