Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Xamarin Android Android.Runtime.Generated

Posted on 2013-01-12
4
Medium Priority
?
733 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

663 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