Re: [mono-android] OnActivityResult not being called

2011-10-13 Thread Brian Matz
I'm having a VERY similar problem, but trying to use the camera. The camera opens, and i can "snap" a picture, but when i choose "Save" or "Ok", depending on device, it hides all activities and returns to the device home screen, although the app is still running in the background. Now the code i'

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
// Interesting, this works: Android.Net.Uri uri = (Android.Net.Uri)data.Extras.Get(Android.Media.RingtoneManager.ExtraRingtonePickedUri); // This returns null string uriString = data.Extras.GetString(Android.Media.RingtoneManager.ExtraRingtonePickedUri); -- View this message in context: ht

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
That i was able to do without problem: Android.Net.Uri uri = (Android.Net.Uri)data.Extras.Get(Android.Media.RingtoneManager.ExtraRingtonePickedUri); -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4802915p4

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
The Real question is, how do you get the "picked" ringtone inside OnActivityResult I tried string extra = data.GetStringExtra(Android.Media.RingtoneManager.ExtraRingtonePickedUri); where data is the Intent passed into OnActivityResult, I get back null? How do you retrieve the selected t

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
Alright, so i figured what this issue is i think... I was originally launching the Intent from an Activity that was loaded as a sub activity in the tab of a TabActivity. When i moved the code to the tab activity itself, the code works. Can anyone think of a reason why this would not work for an

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
I just copied and pasted your code, and it works for me, OnActivityResult is being called for for Activity 40. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4802915p4803160.html Sent from the Mono for Android mailing list archi

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
While this does make sense to me, my question is how to do this with an android native intent. As you can see i am using the constructor which takes a string value to launch one of the Android native activities for selecting a ringtone. How do i set the parent and still use the Android native Rin

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
Also, I used this version: i.SetClass(this, typeof(Activity2)); This passes the parent of the Activity in, which you aren't doing, which is probably why it isnt working for you. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
Wow! I ran into this myself not 20 minutes ago, to make it work, you have to do this, I had left off the SingleTop and the OnActivityResult was being called immediately. // I found this fix from: http://lblasa.wordpress.com/2011/06/16/android-onactivityresult-after-startactivityforresult-getting-c

[mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
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 wri