Re: [mono-android] how to access an activity from broadcast receiver

2012-02-21 Thread Jonathan Pryor
In general, when Java code has `SomeType.class`, the equivalent C# is `typeof(SomeClass)`. Thus: On Feb 19, 2012, at 2:50 PM, tweaver60 wrote: >// Create an Intent to launch ExampleActivity >Intent intent = new Intent(context,* Activity1*); //Java var in

Re: [mono-android] how to access an activity from broadcast receiver

2012-02-19 Thread tweaver60
Bingo - thank you! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/how-to-access-an-activity-from-broadcast-receiver-tp5497414p5497483.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid m

Re: [mono-android] how to access an activity from broadcast receiver

2012-02-19 Thread Jonathan Pobst
Try: Java.Lang.Class.FromType (typeof (Activity1)) Jonathan On 2/19/2012 1:50 PM, tweaver60 wrote: I'm sure this is a beginner question, please bear with me: I'm trying to create an intent inside a broadcast receiver for an activity - can't seem to figure out how to access the class (does not

[mono-android] how to access an activity from broadcast receiver

2012-02-19 Thread tweaver60
I'm sure this is a beginner question, please bear with me: I'm trying to create an intent inside a broadcast receiver for an activity - can't seem to figure out how to access the class (does not compile), as they do in a sample Java app I'm looking at // Create an Intent to launc