On Jul 22, 2011, at 10:40 AM, alex wrote:
> oh thanks for reply !! I have a doubt i was trying to open my c# activity 
> like this
> 
> intent.setClass(mapView.getContext(), (ListDetail));

This syntax doesn't look valid. What you want is:

        intent.setClass(mapView.getContext(), ListDetail.class);

However, as per the docs, `mapView.getContext()` must be a context of the 
application package that contains the ListDetail.class type. Will this be 
correct?

You may want to instead use Intent.setClassName(String, String):

        
http://developer.android.com/reference/android/content/Intent.html#setClassName(java.lang.String,
 java.lang.String)

e.g.

        intent.setClassName("full.package.to", "ListDetail");

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to