public void doUpdate()
        {
            entity.text   = updateText.Text;
            entity.author = new KinveyReference <KinveyXamarin.User> ("user", KinveyService.getCurrentUserId());

            //byte[] bytes;
            //using (var stream = new MemoryStream())
            //{
            //	((StatusShare)Activity).bitmap.Compress(Bitmap.CompressFormat.Png, 0, stream);
            //	bytes = stream.ToArray();
            //}

            //((StatusShare)Activity).bitmap.

            var stream = new MemoryStream();

            ((StatusShare)Activity).bitmap.Compress(Bitmap.CompressFormat.Png, 0, stream);


            KinveyService.saveUpdate(entity, stream, new KinveyXamarin.KinveyDelegate <UpdateEntity>()
            {
                onSuccess = (update) => {
                    Activity.RunOnUiThread(() => {
                        Toast.MakeText(this.Activity, "uplaoded: " + update.ID, ToastLength.Short).Show();
                        ((StatusShare)this.Activity).ReplaceFragment(new ShareListFragment(), false);
                    });
                },
                onError = (error) => {
                    Activity.RunOnUiThread(() => {
                        Toast.MakeText(this.Activity, "something went wrong: " + error.Message, ToastLength.Short).Show();
                    });
                }
            });
        }