package org.commcare.dalvik.application;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;

import org.commcare.dalvik.R;
import org.commcare.dalvik.activities.AppManagerActivity;

public class ManagerShortcut extends Activity {

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Intent shortcutIntent = new Intent(getApplicationContext(), AppManagerActivity.class);
        shortcutIntent.addCategory(Intent.CATEGORY_HOME);
        
        Intent intent = new Intent();
        intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
        intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, R.string.manager_activity_name);
        Parcelable iconResource = Intent.ShortcutIconResource.fromContext(this,  R.drawable.icon);
        intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource);
        
        setResult(RESULT_OK, intent);
        finish();
    }
    
}

@@ -701,16 +701,26 @@
 T_NAME, 
+getString(
 R.string
@@ -742,16 +742,17 @@
 ty_name)
+)
 ;%0A      

fix for app manager icon label not appearing