0

How to create a shortcut with monkeyrunner broadcastIntent()?

Can I do this?

device.broadcastIntent("com.android.launcher.action.INSTALL_SHORTCUT", app_pkg_name)
Ja͢ck
  • 170,779
  • 38
  • 263
  • 309
  • Have you tried the same intent from somewhere else (i.e. android app) and it works? – Diego Torres Milano Nov 20 '13 at 15:09
  • I tried to create an apk to broadcast the intent, it works. but that's a little complicated for it has another intent object in this install_shortcut intent. i don't know if i can create such an intent object with Monkeyrunner. – KennyXiong Nov 21 '13 at 06:15

0 Answers0