Пример #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.ActivityMain);

            mHelper = new ShortcutHelper(this);

            mHelper.MaybeRestoreAllDynamicShortcuts();

            mHelper.RefreshShortcuts(/*force=*/ false);

            if (ACTION_ADD_WEBSITE.Equals(Intent.Action))
            {
                // Invoked via the manifest shortcut.
                AddWebSite();
            }

            mAdapter    = new MyAdapter(this);
            ListAdapter = mAdapter;
        }
Пример #2
0
 public AddUriTask(Main owner, ShortcutHelper helper)
 {
     Owner  = owner;
     Helper = helper;
 }
 public RefreshShortcutsTask(Context context, ShortcutHelper helper, ShortcutManager shortcutManager)
 {
     Context         = context;
     Helper          = helper;
     ShortcutManager = shortcutManager;
 }