예제 #1
0
        public void ReturnWithFile(string filePath)
        {
            Dictionary <string, string> properties = new Dictionary <string, string>
            {
                { "TaskId", learningTask.Id.ToString() }
            };

            Analytics.TrackEvent("CameraActivity_ReturnWithFile", properties);

            // add location to EXIF if it's known
            global::Android.Locations.Location loc = GetLastLocation();
            if (loc != null)
            {
                AndroidUtils.LocationToEXIF(filePath, loc);
            }

            Intent myIntent = new Intent(this, typeof(ActTaskListActivity));

            myIntent.PutExtra("TASK_ID", learningTask.Id);
            myIntent.PutExtra("FILE_PATH", filePath);
            SetResult(Result.Ok, myIntent);
            Finish();
        }