Whats odd is it seemed to only do it on the device, not the debugger. Now, it
seems fine on the device. To my knowledge, I didn't change anything. I will
check out that link below, thank you sir!
From: Jonathan Pryor-2 [via Mono for Android]
[mailto:[email protected]]
Sent: Monday, September 10, 2012 1:13 PM
To: Condron, Chuck
Subject: Re: OnStart code being called when I return to the layout
On Sep 4, 2012, at 6:14 PM, Vulcanccit <[hidden
email]</user/SendEmail.jtp?type=node&node=5711761&i=0>> wrote:
> However, on an Android Admiral, i calls the webservice everytime.
Is OnCreate() being invoked every time? (Set a breakpoint or add a log
message.) It's possible that your device is recreating the Activities instead
of reusing the same instance.
You may want to move the WebService-related state out of the Activity and into
a static field or the Application type:
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Hello.cs#L93
- Jon
_______________________________________________
Monodroid mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=5711761&i=1>
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
________________________________
If you reply to this email, your message will be added to the discussion below:
http://mono-for-android.1047100.n5.nabble.com/OnStart-code-being-called-when-I-return-to-the-layout-tp5711694p5711761.html
To unsubscribe from OnStart code being called when I return to the layout,
click
here<http://mono-for-android.1047100.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5711694&code=Y2h1Y2tjb25kcm9uQGNsZWFyY2hhbm5lbC5jb218NTcxMTY5NHwxMzMyMDQzMjc0>.
NAML<http://mono-for-android.1047100.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/OnStart-code-being-called-when-I-return-to-the-layout-tp5711694p5711772.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