tags:

views:

185

answers:

1

I am trying to use the following intent action, but i get an ActivityNotFoundException in the fisrt case. And nothing at all in the second case.

"com.android.launcher.action.UNINSTALL_SHORTCUT"

I try to use it with the following code:

Intent i = new Intent
("com.android.launcher.action.UNINSTALL_SHORTCUT");
startActivity(i);

Also with the following:

Intent i = new Intent
("com.android.launcher.action.UNINSTALL_SHORTCUT");
sendBroadCast(i);
A: 

Hi Lucas,

could you please share some code snippet for uninstalling a shortcut from the Android home screen?

I've been trying to figure this one out but i'm not sure what I'm doing wrong.

Thanks!

Alex

Alex
Hello Alex,There is not way of removing a shortcut from Home menu, but you can hide it. That is why i don't add the solution to this question, because it is not the same behavior.
Lucas S.