I have an Android fragment that has a function that outputs a hexadecimal string. I need some way of either opening this fragment from Xamarin Forms code, or sending the string to my Xamarin Forms page.
I have tried to implement a MessagingCenter script that would send the string to my Xamarin Forms code, but my issue is that I cannot figure out how to create an intent from Forms that would start the Android Fragment. What I need is for some way that when a button is pressed in forms, it would either call the Fragment or open an android page with the fragment.
Xamarin Forms:
private void OnGenerate(object sender, EventArgs e)
{
MessagingCenter.Subscribe<App, string>(App.Current, "OpenPage", (snd, arg) =>
{
Device.BeginInvokeOnMainThread(() => {
tagLabel.Text = arg;
});
});
}