Solved

Xamarin Android Android.Runtime.Generated

Posted on 2013-01-12
4
713 Views
Last Modified: 2013-01-17
Intent intent = new Intent(); intent.SetAction("android.SipDemo.INCOMING_CALL"); 
PendingIntent pendingIntent = PendingIntent.GetBroadcast(this, 0, intent, Intent.FILL_IN_DATA); 
mSipManager.Open(mSipProfile, pendingIntent, null);

Open in new window



On the 3rd line, I get a syntax error of:

Android.Content.Intent does not contain a definition for FILL_IN_DATA accepting a first argument of type Android.Content.Intent could be found (Are you missing a using directive or assembly reference?)

I am not using a "Using" directive. I could be missing a assembly reference. Although I'm not sure which one. I am using all the ones provided in the guide -> http://docs.mono-android.net/index.aspx?link=M%3AAndroid.Net.Sip.SipManager.Open%28Android.Net.Sip.SipProfile%29

If anyone could give me a pointer or nudge in the right direction, it would be extremely helpful.
public static PendingIntent GetBroadcast (Android.Content.Context context, int requestCode, Android.Content.Intent intent, [Android.Runtime.GeneratedEnum] PendingIntentFlags flags)

Open in new window




Am I suppose to do something with Android.Runtime.GeneratedEnum?

Thanks in advance.
0
Comment
Question by:Iamtehbest
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38770746
Did you try the suggestion you received on the official Xamarin forum?

http://forums.xamarin.com/discussion/779/fill_in_data
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38770753
Also, if you can't get it worked out (sorry, I don't have Xamarin to play with), the value seems to be a constant of 2, so might hard-code it (yikes!) or create your own constant somewhere.

http://developer.android.com/reference/android/content/Intent.html#FILL_IN_DATA
0
 

Accepted Solution

by:
Iamtehbest earned 0 total points
ID: 38770779
I tried hard coding the value of 2, but it doesn't like it.  It will however let me put in 0.  

But turns out that it was because I was using a AVD.  After plugging in my phone the code worked.  Thanks.
0
 

Author Closing Comment

by:Iamtehbest
ID: 38786396
Figured it out.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Firing an ASP.NET event on selection of a JQuery datepicker 4 31
parsing JSON help 1 20
Upgrading my SSIS package in VS 2012 6 62
SSRS Deployment problem 5 67
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question