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'
// 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
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
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
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
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
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
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
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
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
10 matches
Mail list logo