I have 3 layouts in my app. One is a list of Cities. If you click a city, it launches layout2 and performs some webservice calls to download some data. Clicking on the listview of one of the data elements lanuches screen 3. When I return from Screen 3 to screen 2, the code in the OnStart fires again.
I set a bool when Screen 2 is first launched to True. if true, call the webservice. once the webservice completes, I set that bool to false. I am doing that in the OnCompleted Event, OnPause and OnResume. In the emulator, all of this works. Webservice only fires when screen 2 is first loaded. However, on an Android Admiral, i calls the webservice everytime. I am very new to Mono for Android. I have ported an app over from Monotouch, On that app, I am doing the same bool type logic to prevent the screen from loading. I can post code if needed, but I am sure this is a common issue for a newbie? Thank you all for your time. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnStart-code-being-called-when-I-return-to-the-layout-tp5711694.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
