Esempio n. 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            mMessageReceiver          = new LocalMessageBroadcastReceiver();
            mMessageReceiver.activity = this;

            mRegisterReceiver          = new LocalRegisterBroadcastReceiver();
            mRegisterReceiver.activity = this;

            registerReceivers();

            PushManager manager = PushManager.GetInstance(this);

            manager.OnStartup(this);

            // Register for push!
            manager.RegisterForPushNotifications();

            // Reset application icon badge number
            manager.BadgeNumber = 0;

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

            mGeneralStatus = FindViewById <TextView>(Resource.Id.general_status);
            mTagsStatus    = FindViewById <TextView>(Resource.Id.status);

            checkMessage(Intent);
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			mMessageReceiver = new LocalMessageBroadcastReceiver ();
			mMessageReceiver.activity = this;

			mRegisterReceiver = new LocalRegisterBroadcastReceiver ();
			mRegisterReceiver.activity = this;

			registerReceivers ();

			PushManager manager = PushManager.GetInstance (this);
			manager.OnStartup (this);

			// Register for push!
			manager.RegisterForPushNotifications();

			// Reset application icon badge number
			manager.BadgeNumber = 0;

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

			mGeneralStatus = FindViewById<TextView>(Resource.Id.general_status);
			mTagsStatus = FindViewById<TextView>(Resource.Id.status);

			checkMessage (Intent);
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            mMessageReceiver          = new LocalMessageBroadcastReceiver();
            mMessageReceiver.activity = this;

            mRegisterReceiver          = new LocalRegisterBroadcastReceiver();
            mRegisterReceiver.activity = this;

            ArelloMobile.Push.PushManager manager = new ArelloMobile.Push.PushManager(this, "583A3-D5063", "55344347410");
            manager.OnStartup(this);

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

            mGeneralStatus = FindViewById <TextView>(Resource.Id.general_status);
            mTagsStatus    = FindViewById <TextView>(Resource.Id.status);

            checkMessage(Intent);
        }
Esempio n. 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            mMessageReceiver          = new LocalMessageBroadcastReceiver();
            mMessageReceiver.activity = this;

            mRegisterReceiver          = new LocalRegisterBroadcastReceiver();
            mRegisterReceiver.activity = this;

            registerReceivers();

            PushManager manager = PushManager.GetInstance(this);

            manager.OnStartup(this);

            // Register for push!
            manager.RegisterForPushNotifications();

            // Reset application icon badge number
            manager.BadgeNumber = 0;

            manager.SetUserId(this, "%userId%");

            IDictionary <string, Java.Lang.Object> attributes = new Dictionary <string, Java.Lang.Object>();

            attributes.Add("attribute", new Java.Lang.String("value"));
            InAppFacade.PostEvent(this, "applicationOpened", attributes);

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

            mGeneralStatus = FindViewById <TextView>(Resource.Id.general_status);
            mTagsStatus    = FindViewById <TextView>(Resource.Id.status);

            checkMessage(Intent);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            mMessageReceiver = new LocalMessageBroadcastReceiver ();
            mMessageReceiver.activity = this;

            mRegisterReceiver = new LocalRegisterBroadcastReceiver ();
            mRegisterReceiver.activity = this;

            ArelloMobile.Push.PushManager manager = new ArelloMobile.Push.PushManager (this, "583A3-D5063", "55344347410");
            manager.OnStartup (this);

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

            mGeneralStatus = FindViewById<TextView>(Resource.Id.general_status);
            mTagsStatus = FindViewById<TextView>(Resource.Id.status);

            checkMessage (Intent);
        }