I found this peice of code for creating short-cut at the dektop:
Intent shortcutIntent = new Intent
(Intent.ACTION_MAIN);
shortcutIntent.setClassName(this, this.getClass
().getName());
Intent intent = new Intent();
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,
shortcutIntent);
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "hello");
Parcelable iconResource =
Intent.ShortcutIconResource.fromContext(
NoteView.this, R.drawable.short_icon);
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
iconResource);
intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
getApplicationContext().sendBroadcast(intent);
I wanted to know is there any way of giving a Bitmap as the short-cut
icon,instead of an existing drawable in the resource folder.
--
Thanks and Regards
Gurudutt P.S.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---