Solved

Xamarin Android Android.Runtime.Generated

Posted on 2013-01-12
4
728 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

634 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