Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

getIntent() function?

BlazeyBlazey USMember ✭✭

In java we have getIntent() function.
How can I use it in .NET C# Xamarin code. I found Intent.GetIntent(string uri) but I need to pass an uri so I guess it's not the same.


  • BillyLiuBillyLiu Member, Xamarin Team Xamurai


    You could just use Intent in xamarin.
    For example:

            var myIntent = Intent;
  • S3CS3C Member ✭✭

    The name 'Intent' does not exist in the current context

    This is the error no matter where I put this line of code. I'm trying to figure out how to enable Intent with no luck at all. I'm using Xamarin.Forms so NuGet does not find a package Android.Content that I should be using according to ALL the snippets I could find where Intent was used somewhere in the code.

Sign In or Register to comment.