این برنامه یه شورتکات از برنامتون تو دسکتاپ میندازه

    public static void addAppicationIconOnDesktop(Context context) {
SharedPreferences prefs = PreferenceManager
.getDefaultSharedPreferences(context);
if ( !prefs.getBoolean("firstTime", false)) {
Intent HomeScreenShortCut = new Intent(context, ActivityMain.class);
HomeScreenShortCut.setAction(Intent.ACTION_MAIN);
HomeScreenShortCut.putExtra("duplicate", false);
// shortcutIntent is added with addIntent
Intent addIntent = new Intent();
addIntent
.putExtra(Intent.EXTRA_SHORTCUT_INTENT, HomeScreenShortCut);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME,
getStr(R.string.app_name));
addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESO URCE,
Intent.ShortcutIconResource.fromContext(context,
R.drawable.tsms_icon));
addIntent.setAction("com.android.launcher.action.I NSTALL_SHORTCUT");
context.sendBroadcast(addIntent);

Toast.makeText(context, R.string.added_icon_to_desktop,
Toast.LENGTH_LONG).show();

SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("firstTime", true);
editor.commit();
}
}