Hi @jsuarezruiz , @StephaneDelcroix & @PureWeen - in iOS version of my app, when I navigate back from a page that has MediaManager, I get an error in the output which is indicating that the dispose is not called. As a result my app becomes totally non responsive.
Do we have to call Dispose method on MediaManager explicitly in iOS Platform project or in Shared project ? [ this is not an issue with Android ]
iOS[57831:4538755] Warning: observer object was not disposed manually with Dispose()
Basic Fault Address Reporting
Memory around native instruction pointer (0x7fff512525f1):0x7fff512525e1 08 5b 41 5e 41 5f 5d c3 48 85 ff 7e 09 48 8b 07 .[A^A_].H..~.H..
0x7fff512525f1 8a 40 1c 24 01 c3 31 c0 c3 48 85 ff 74 17 78 1d .@.$..1..H.
0x7fff51252601 48 8b 07 48 85 c0 74 0d 48 89 c7 be 01 00 00 00 H..H..t.H.......
0x7fff51252611 e9 a0 d4 00 00 48 8d 05 5b 1c 02 00 c3 48 89 f8 .....H..[....H..
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:void_objc_msgSend <0x000e1>
at AVFoundation.AVPlayer:Pause <0x00122>
at Xamarin.Forms.Platform.iOS.MediaElementRenderer:Dispose <0x00327>
if we can put up a permanent response thing on gitter so anyone going there knows to go to discord then I think we can archive this channel
Otherwise probably good to keep open for a bit just to guide people
Hi anyone have an idea about this bug? microsoft/appcenter#1451
Whats the workaround for entering text in search bar? Xamarin.UITest are failing in Android 10
access the context from a static instance in android isn't recommended
you should access the context from whatever context that text view is instantiated from
you should be able to do this.Context
if you can't do this.Context then you need to pass in the Context from whatever is calling the code to instantiate the TextView
that's a tricky one :confused:
I would use this plugin
And retrieve the current Context from that
Which should be fine
technically what you should do is retrieve the Context from the renderer associated with the Grid but that will only matter if you're using material or if your Grid has a different activity context
yea with android the styles/themes etc.. are all stored inside the context so that's what android native views use to know how to make themselves look a certain way
So, for material what we do is instantiate a new Context with material themes and then that gets passed through to all the children which then style based on that new context
What you could also do (which would probably be fine) is register the concrete type yourself in MainActivity
PaintUtils utils = new PaintUtils(this); DependencyService.RegisterSingleton<ICalculateTextWidth>(utils);
or you could even just register a static TextView
Because you are only using it to measure you don't really need to instantiate a new one everytime
that one I'm not super sure
Your best bet for an answer there would be to hop in here
And ask the android team...
My guess there is that that's a conflict between the mono version of those and the .net version of those
you might have a nuget pulling in net47 or something versions of those
in your obj folder there's a file called project.assets.json that you MIGHT be able to mine through to find where those are coming from