Example #1
0
        private void ReceiveUploadedUriPreHoneyComb(Intent intent)
        {
            Uri upload = intent.Data;

            mUriUploadCallback.OnReceiveValue(upload);
            mUriUploadCallback = null;
        }
Example #2
0
 private void ResetUriUploadCallback()
 {
     if (mUriUploadCallback != null)
     {
         mUriUploadCallback.OnReceiveValue(null);
         mUriUploadCallback = null;
     }
 }
Example #3
0
 private void ReceiveUploadedUriArray(Intent data)
 {
     Uri[] uploadedUris;
     try
     {
         uploadedUris = new Uri[] { Uri.Parse(data.DataString) };
     }
     catch (System.Exception e)
     {
         uploadedUris = null;
     }
     mUriArrayUploadCallback.OnReceiveValue(uploadedUris);
     mUriArrayUploadCallback = null;
 }
Example #4
0
        private void ReceiveUploadedUri(Intent intent)
        {
            Uri uploadedFileUri;

            try
            {
                string uploadedUriFilePath = UriUtils.GetFilePathFromUri(instance, intent.Data);
                File   upload = new File(uploadedUriFilePath);
                uploadedFileUri = Uri.FromFile(upload);
            }
            catch (System.Exception)
            {
                uploadedFileUri = null;
            }

            mUriUploadCallback.OnReceiveValue(uploadedFileUri);
            mUriUploadCallback = null;
        }
Example #5
0
 private void ChooseUriArrayToUpload(IValueCallBack <Uri[]> uriArrayValueCallback)
 {
     ResetAllUploadCallbacks();
     mUriArrayUploadCallback = uriArrayValueCallback;
     StartFileChooserActivity();
 }