I am trying to develop a simple activity that will allow the user to select a ringtone. I can successfully get the Ringtone spinner to pop up but when i select ok or cancel, the OnActivityResult is never called. Any thoughts? Following is my code (I just open the selector and then for now am writing a Toast if ok and just closing the activity if it is cancel):
protected virtual void establishPicker() { Intent intent = new Intent(Android.Media.RingtoneManager.ActionRingtonePicker); intent.PutExtra(Android.Media.RingtoneManager.ExtraRingtoneType, (int)Android.Media.RingtoneType.Ringtone); intent.PutExtra(Android.Media.RingtoneManager.ExtraRingtoneTitle, "Pick Default Ringtone"); StartActivityForResult(intent, 40); } protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult(requestCode, resultCode, data); switch (resultCode) { case Result.Ok: Toast.MakeText(this, "Got It", ToastLength.Long).Show(); break; case Result.Canceled: case Result.FirstUser: default: Finish(); break; } } -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4802915p4802915.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid