Can I use my XAML pages from pcl instead of making a AXML for my android activity.

I want to be able to call a screen that I have in my portable class library instead of having to make a new one.
When I start the activity some android screen comes up and I can't figure out how to prevent that screen from popping up while the activity is active.

Can I make the activity just run in the background without pup-ups from android or do I allways need a specific android screen when I run an activity?

namespace NFC.Droid
[Activity(MainLauncher = false, LaunchMode = LaunchMode.SingleTask,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation),
IntentFilter(new[] {NfcAdapter.ActionTechDiscovered},
Categories = new[] {Intent.CategoryDefault})]

public class ExtraActivityNFC : Activity
    protected string TagUid;
    public string mystring = "";
    PendingIntent myPendingIntent;
    IntentFilter ndefDetected;

    protected override void OnCreate(Bundle savedInstanceState)

        //Want this to redirect me to a XAML screen that I have in my shared code

        Intent Myintent = new Intent(this, GetType());
        myPendingIntent = PendingIntent.GetActivity(this, 0, Myintent, 0);
        ndefDetected = new IntentFilter(NfcAdapter.ActionTechDiscovered);



Sign In or Register to comment.