Re: [mono-android] Running devices list not updated when debugging in Visual Studio 2010
If you start the emulator before opening VS, then VS can see it. See http://mono-for-android.1047100.n5.nabble.com/Emulator-and-MfA-4-2-2-td5710073.html here Hope that can help. Marco -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Running-devices-list-not-updated-when-debugging-in-Visual-Studio-2010-tp5710100p5710117.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Updating a View using a Timer
Dear Freinds! I am working on a android program to receive data from a microcontroller through wifi to draw data points over time. I have set up a simple View and also I managed to connect to WiFi module on the microcontroller using sockets, now I really need to know what should I do to reterive data based on a time interval. For example I want to get the data from the microcontroller every 100 ms and update the View on android (Adding points to the graph). Any kind of help and code samples will be really appriciated. Regards, Saeid. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Updating-a-View-using-a-Timer-tp5710118.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Sending object between activities
If you can use serialization to achieve this, then that's a good way. If you instead choose to use a singleton or some other "in memory" solution, then please be aware of the Activity lifecycle - http://docs.xamarin.com/android/tutorials/Activity_Lifecycle - please consider that the Android OS is free to evict your app from memory and to reinstate it again later - in which case the singleton might not always be in RAM when your activity starts. Stuart On 31 May 2012 13:34, blorecrafter wrote: > Hi > You can use json serialization and attach the resulting string as Intent > Extras. For this you need to decorate the Class you want to serialize with > [DataContract] attribute and Class Fields with [DataMember]. > On the receiving activity you can again use json deserialization to > construct the object. > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Sending-object-between-activities-tp5710109p5710111.html > Sent from the Mono for Android mailing list archive at Nabble.com. > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Updating a View using a Timer
In .NET you have System.Timers.Timer and System.Diagnostics.Stopwatch. I don't know what else do you need? Maybe a call to View.Invalidate() to force a refresh of your View. Or PostInvalidate() if you are in another thread. On Fri, Jun 1, 2012 at 2:34 PM, Saeid Yazdani wrote: > Dear Freinds! > > I am working on a android program to receive data from a microcontroller > through wifi to draw data points over time. > > I have set up a simple View and also I managed to connect to WiFi module on > the microcontroller using sockets, now I really need to know what should I > do to reterive data based on a time interval. For example I want to get the > data from the microcontroller every 100 ms and update the View on android > (Adding points to the graph). > > Any kind of help and code samples will be really appriciated. > > Regards, > Saeid. > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Updating-a-View-using-a-Timer-tp5710118.html > Sent from the Mono for Android mailing list archive at Nabble.com. > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > -- Regards, Gpe ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Install location with monodevelop
On May 31, 2012, at 11:06 AM, keith wrote: > I am using monodevelop(3.0.2) on a mac, and Mono for Android: > 4.2.2.134493563. I have set my target api level to 8, my minimum api level > to 7, checked "deploy to external storage" and ensured that install location > drop down is set to preferexternal. The problem is that installLocation requires API8+, and you're setting your minimum Android to target to 7. You should be seeing the following message when you build: monodroid: warning 1 : installLocation cannot be specified for Android versions less than 2.2. Attribute installLocation ignored. The API level we use is the $(TargetFrameworkVersion) of your app; you should check the value of the element within your .csproj; if it's not present, we default to API 8 (Android v2.2). - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid