Hi,
I have created two Monondroid projects in my "workspace" in Monodevelop.
The first is called "CustomProject", and the other called "MainProject"
Inside of "MainProject" I have created a Splash view called "SplashView".
I now want to use SplashView in my "CustomProject". I already referenced
"MainProject" from "CustomProject" (I right-clicked on References of
CustomProject --> Edit References --> Projects and I selected the
MainProject.
On the OnCreate Method of Main launcher in CustomProject:
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
var Splash = new Intent(this,typeof(MainProjectNameSpace.SplashView));
StartActivity (Splash);
}
On the OnCreate Method of splashView in MainProject:
protected override void OnCreate (Bundle bundle)
{
try {
base.OnCreate (bundle);
SetContentView (Resource.Layout.SplashView);
dialogPr =
FindViewById<ProgressBar>(Resource.Id.progressbar);
[...]
} catch (Exception ex) {
}
}
But dialogPr is NULL!!!
why? Where am I going wrong?
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Using-resource-by-other-project-tp5638449p5638449.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid