Hi,
I'm trying to figure out how to load a layout from within a class. My main activity calls the class, and if an outgoing call is detected it triggers my toast. The toast should be followed by loading or "Popup" my "Selection" layout. I'm a little lost and any help is welcomed.
-- using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget;
namespace minuteSaver
{
[BroadcastReceiver (Enabled = true, Exported = false)]
class icCall:BroadcastReceiver
{
public override void OnReceive (Context context, Intent intent)
{
Toast notifyUser = Toast.MakeText(context, "test", ToastLength.Long);
if (intent.Action == Intent.ActionNewOutgoingCall)
{
notifyUser.Show();
Console.WriteLine ("Debug: Outgoing call detected");
View myView = new View (context);
}
if (intent.Action == Intent.ActionPowerDisconnected)
{
}
}
}
}