Re: [mono-android] 4.2.2 Samsung Galaxy SII Turns off at runtime
Thanks for your reply jon. I indeed get GC_EXTERNAL_ALLOC on my Samsung and after checking heap size i found out that the XOOM has 256mb compared to only 64 on the Samsung. Guess i got some cleaning up to do! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/4-2-2-Samsung-Galaxy-SII-Turns-off-at-runtime-tp5710290p5710310.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] SQLite and shared rountime
Hi, In my project I'm using SQLite database (http://code.google.com/p/sqlite-net/). Everything works ok when I'm using it on my development machine (debug mode + shared rountime tourned on). Problem occurs when I'm trying to create a package for a client - I'm turning off shared rountime to create an .apk package and then my database stops working (I'm performing Insert to database with auto-increment PK and I always get 0 and information that tables doesnt have any primary key auto-inc columns). What can I check? Best regards ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] debugger constantly detaches
Spoke too soon.. :( However i think i can create a very similar issue in the default android opengl app. If you create a new monodroid opengl project and then put these lines in GLView#.cs OnRenderFrame, underneath GL.DrawArrays(): for (int i = 0; i < 50; i++) GC.Collect(0); For me it exits after a few seconds. However if I run the app without the debugger it runs fine. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/debugger-constantly-detaches-tp5710262p5710313.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] Intel Emulator with maps?
On 2012-06-12 16:55, Jonathan Pryor wrote: On Jun 12, 2012, at 10:22 AM, Stuart Lodge wrote: However, I don't seem to be able to get an Intel x86 emulator image with Google maps also installed. Does anyone know how to achieve this? You don't, as far as I can tell. If you open the AVD manager, create a New device, and select a Target of Google APIs (Google Inc.) - API Level 15, the CPU/ABI drop-down is ARM (armeabi-v7a) and cannot be changed to Intel Atom (x86). This suggests that x86 isn't a valid Google APIs target at this time. You can try the steps described in http://38911bytes.blogspot.de/2012/03/how-to-use-google-maps-api-in-android.html, I haven't tested it personally so ymmv marek Thanks, - Jon ___ 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] Install location with monodevelop
Thanks Jon I was missing the setting on the mono develop settings > build > general tab that is obviously used for compilation. I had already tried the other two settings both on api 8. Keith Raven Buzz Interactive 25 Trenance Road, Newquay, Cornwall UK TR7 2LT t: +44 (0)1637 839173 m: +44 (0)7971 699127 www.buzzinteractive.co.uk This message contains confidential information and is intended only for the person to whom it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this message by mistake and delete this message from your system. The sender does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. The recipient should check this email and any attachments for the presence of viruses. Buzz Interactive Solutions Ltd accepts no liability for any damage caused by any virus transmitted by this email. On 7 Jun 2012, at 15:42, Jonathan Pryor-2 [via Mono for Android] wrote: > On Jun 7, 2012, at 6:15 AM, Keith Raven wrote: > > I was under the impression that external installation was available since > > api 7 however mono develop required a target of 8 for this to work, hence > > the min version. > > Your impression is incorrect. Android states that the > /manifest/@android:installLocation was added in API 8: > > > http://developer.android.com/guide/topics/manifest/manifest-element.html#install > > If you need to have target API 7 (e.g. for sane > code completion), you can edit your Properties\AndroidManifest.xml and set > the /manifest/uses-sdk/@android:targetSdkVersion attribute to 8. This should > cause Mono for Android to use the API 7 Mono.Android.dll (for code > completion) and the API 8 android.jar (for AndroidManifest.xml processing), > allowing you to use the /manifest/@android:installLocation attribute. > > - Jon > > ___ > Monodroid mailing list > [hidden email] > > 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/Install-location-with-monodevelop-tp5710112p5710221.html > To unsubscribe from Install location with monodevelop, click here. > NAML -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Install-location-with-monodevelop-tp5710112p5710315.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] change to a Java cast after 4.2.2
Since installing 4.2.2 I now get an unhandled exc on this code Which I've probably been lucky to get away with before... trouble is I don't know what to do next to solve it Its a dialog click method public void garlistclick(object sender, DialogClickEventArgs ee) { AlertDialog send = (AlertDialog)sender; JavaList selitem3 = (JavaList)send.ListView.GetItemAtPosition(ee.Which); The unhandled happens on the third line and say 'invalid cast' cannot cast from source... Seemed to work just fine before Any suggestions ? Thanks in advance JM ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] change to a Java cast after 4.2.2
On Jun 13, 2012, at 11:00 AM, John Murray wrote: > Since installing 4.2.2 I now get an unhandled exc on this code What is the runtime type of your `sender` parameter? What release were you using prior to 4.2.2? If you were on 4.0.x previously, you're probably hitting: http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono_for_Android_4.2#Breaking_Changes The various FooEventArgs.V properties have been removed, and their value is now the sender parameter of the EventHandler delegate. > Which I’ve probably been lucky to get away with before... trouble is I don’t > know what to do next to solve it Its a dialog click method What code are you using garlistclick() with? For example, if I do: var builder = new Android.App.AlertDialog.Builder (this); builder.SetItems (new[]{"one", "two", "three"}, (o, e) => { Console.WriteLine ("Handler invoked! sender.GetType()={0}", o.GetType ().FullName); }); builder.Create ().Show (); `o.GetType()` is Android.App.AlertDialog. Presumably you're not using AlertDialog.Builder.SetItems(); what are you using? Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] debugger constantly detaches
Could you file a test case at bugzilla.xamarin.com? We haven't been able to reproduce this issue. Thanks! - Jon On Jun 13, 2012, at 4:19 AM, l0nestar wrote: > Spoke too soon.. :( > > However i think i can create a very similar issue in the default android > opengl app. > > If you create a new monodroid opengl project and then put these lines in > GLView#.cs OnRenderFrame, underneath GL.DrawArrays(): > > for (int i = 0; i < 50; i++) > GC.Collect(0); > > For me it exits after a few seconds. However if I run the app without the > debugger it runs fine. > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/debugger-constantly-detaches-tp5710262p5710313.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] SQLite and shared rountime
On Jun 13, 2012, at 4:14 AM, Dariusz Sroka wrote: > Problem occurs when I'm trying to create a package for a client - I'm turning > off shared rountime to create an .apk package and then my database stops > working. Does the Release .apk fail on your device or only on the client's device? If it works on your device and fails on the client's device, are you running the same Android version and/or same manufacturer? What Android version? Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] SQLite and shared rountime
Hi, It was not working on both devices (client and mine). I solved my problem by merging two projects (data project and main project) into one - now when my solution have only one project everything is working correct.. Weird. Best regards -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/SQLite-and-shared-rountime-tp5710312p5710320.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] debugger constantly detaches
On Jun 13, 2012, at 2:55 PM, Jonathan Pryor wrote: > Could you file a test case at bugzilla.xamarin.com? We haven't been able to > reproduce this issue. My bad, we already have a bug filed: https://bugzilla.xamarin.com/show_bug.cgi?id=4725 Even better, we're now able to reproduce... - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] What's up with 4.2.3 debugging?
Apologies in advance - perhaps this isn't the most constructive feedback but... WTH is up with the debugging 4.2.3? The debugger seems to have a mind of it's own. It's slow and doesn't seem to hit all the breakpoints. I rolled back to 4.2.1 (without a reboot either - and using exactly the same code) and suddenly the debugging is hundreds! I really dig the designer in 4.2.3 - it is a huge time saver - but I want the rock solid debugging of ver 4.2.1. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/What-s-up-with-4-2-3-debugging-tp5710322.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] debugger constantly detaches
I'm seeing a few of these events too in 4.2.3 - and seeing these errors during the detach http://mono-for-android.1047100.n5.nabble.com/file/n5710267/monodebugexception.png Glad to hear you are already on it :) On 13 June 2012 20:12, Jonathan Pryor wrote: > On Jun 13, 2012, at 2:55 PM, Jonathan Pryor wrote: > > Could you file a test case at bugzilla.xamarin.com? We haven't been > able to reproduce this issue. > > My bad, we already have a bug filed: > >https://bugzilla.xamarin.com/show_bug.cgi?id=4725 > > Even better, we're now able to reproduce... > > - Jon > > ___ > 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] Tow mapviews
not sure of your questions but if you are looking for a thread.. I would use background worker (unless there is a known problem) and use a handler to update your ui thread. If you feel it's more complicated than that, send over your code so I can try it. if you are just looking for a solution to do work in another thread, here is a small example: public ienumerable getItems() <--- your function should use yield return. You can process a list as you get it, not a whole list at a time. (consider which is faster and less memory consumptive) System.ComponentModel,backgroundworker bg = new ...Backgroundworker(); <--- not gonna babysit you through how to use this. Make sure you catch errors and finished, too. Handler hndler = new Handler () ; <--- this will make sure you don't have any cross thread problems updating your ui from another thread/ If this doesn't apply to your problem please send the code. On Sun, Jun 10, 2012 at 6:41 AM, Sloot wrote: > Hello, > > I'm working on an Monodroid app which uses two mapviews. The first mapview > is for showing all kind of POI's and Polygons (water) and the second Mapview > is used for inserting a new POI by clicking on the that Mapview. My problem > is (and it's a known problem for Android) that the Mapviews behave strange. > The solution which I've found is to open the second screen (with the second > Mapview) in a new process. Can anybode tell me how this has to be done in > Monodroid? > > > > When I fill in the AndroidManifest it doesn't work out: > > ...and also [Activity(Label = "ActivityPOINew", Theme = > "@style/CustomTheme", Process = "nl.test.p2", NoHistory = true, > ScreenOrientation = ScreenOrientation.Portrait)] is not resulting... > > Can anybody help me further? > > Kindly regards, > Wouter Slotegraaf > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Tow-mapviews-tp5710266.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 -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] problem deploying 4.2.2
try parsing a query string On Mon, Jun 11, 2012 at 4:07 PM, Jonathan Pryor wrote: > On Jun 11, 2012, at 1:00 PM, Sayed Arian Kooshesh wrote: >> You should also never use httputility as the static constructor causes a >> whole meg of memory to vainsh. > > How pray-tell did you come to this conclusion? My (really stupid) test shows > that it only uses 26k: > > protected override void OnCreate (Bundle bundle) > { > base.OnCreate (bundle); > GC.Collect (); > var start = GC.GetTotalMemory (false); > Console.WriteLine ("Start memory: {0}", start); > Foo (); > GC.Collect (); > var end = GC.GetTotalMemory (false); > Console.WriteLine ("End memory: {0}; diff={1}", end, > (end-start).ToString ()); > } > > static void Foo () > { > var ignore = new System.Web.HttpUtility (); > } > > The memory diff is 26520, which is a far cry from 1MB... > > - Jon > > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] problem deploying 4.2.2
btw i said STATIC CONSTRUCTOR ;) On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh wrote: > try parsing a query string > > On Mon, Jun 11, 2012 at 4:07 PM, Jonathan Pryor wrote: >> On Jun 11, 2012, at 1:00 PM, Sayed Arian Kooshesh wrote: >>> You should also never use httputility as the static constructor causes a >>> whole meg of memory to vainsh. >> >> How pray-tell did you come to this conclusion? My (really stupid) test shows >> that it only uses 26k: >> >> protected override void OnCreate (Bundle bundle) >> { >> base.OnCreate (bundle); >> GC.Collect (); >> var start = GC.GetTotalMemory (false); >> Console.WriteLine ("Start memory: {0}", start); >> Foo (); >> GC.Collect (); >> var end = GC.GetTotalMemory (false); >> Console.WriteLine ("End memory: {0}; diff={1}", end, >> (end-start).ToString ()); >> } >> >> static void Foo () >> { >> var ignore = new System.Web.HttpUtility (); >> } >> >> The memory diff is 26520, which is a far cry from 1MB... >> >> - Jon >> >> ___ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid > > > > -- > Extreme Knowledge is not something for which he programs a computer > but for which his computer is programming him. > > -Wozniak -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] problem deploying 4.2.2
is the .net world just full of idiots? I'm going back to pure c. You should also never use httputility as the* static constructor causes* a whole meg of memory to vainsh On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh wrote: > btw > i said > STATIC CONSTRUCTOR ;) > > On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh > wrote: >> try parsing a query string >> >> On Mon, Jun 11, 2012 at 4:07 PM, Jonathan Pryor wrote: >>> On Jun 11, 2012, at 1:00 PM, Sayed Arian Kooshesh wrote: You should also never use httputility as the static constructor causes a whole meg of memory to vainsh. >>> >>> How pray-tell did you come to this conclusion? My (really stupid) test shows that it only uses 26k: >>> >>>protected override void OnCreate (Bundle bundle) >>>{ >>>base.OnCreate (bundle); >>>GC.Collect (); >>>var start = GC.GetTotalMemory (false); >>>Console.WriteLine ("Start memory: {0}", start); >>>Foo (); >>>GC.Collect (); >>>var end = GC.GetTotalMemory (false); >>>Console.WriteLine ("End memory: {0}; diff={1}", end, (end-start).ToString ()); >>>} >>> >>>static void Foo () >>>{ >>>var ignore = new System.Web.HttpUtility (); >>>} >>> >>> The memory diff is 26520, which is a far cry from 1MB... >>> >>> - Jon >>> >>> ___ >>> Monodroid mailing list >>> Monodroid@lists.ximian.com >>> >>> UNSUBSCRIBE INFORMATION: >>> http://lists.ximian.com/mailman/listinfo/monodroid >> >> >> >> -- >> Extreme Knowledge is not something for which he programs a computer >> but for which his computer is programming him. >> >> -Wozniak > > > > -- > Extreme Knowledge is not something for which he programs a computer > but for which his computer is programming him. > > -Wozniak -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] problem deploying 4.2.2
actually, jon, I'm gonna take back my words. You're not idiot and I appreciate your previous help On Mon, Jun 11, 2012 at 4:12 PM, Sayed Arian Kooshesh wrote: > is the .net world just full of idiots? I'm going back to pure c. > > > You should also never use httputility as the* static constructor causes* > a whole meg of memory to vainsh > > On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh > wrote: > > btw > > i said > > STATIC CONSTRUCTOR ;) > > > > On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh > > wrote: > >> try parsing a query string > >> > >> On Mon, Jun 11, 2012 at 4:07 PM, Jonathan Pryor > wrote: > >>> On Jun 11, 2012, at 1:00 PM, Sayed Arian Kooshesh wrote: > You should also never use httputility as the static constructor > causes a whole meg of memory to vainsh. > >>> > >>> How pray-tell did you come to this conclusion? My (really stupid) test > shows that it only uses 26k: > >>> > >>>protected override void OnCreate (Bundle bundle) > >>>{ > >>>base.OnCreate (bundle); > >>>GC.Collect (); > >>>var start = GC.GetTotalMemory (false); > >>>Console.WriteLine ("Start memory: {0}", start); > >>>Foo (); > >>>GC.Collect (); > >>>var end = GC.GetTotalMemory (false); > >>>Console.WriteLine ("End memory: {0}; diff={1}", end, > (end-start).ToString ()); > >>>} > >>> > >>>static void Foo () > >>>{ > >>>var ignore = new System.Web.HttpUtility (); > >>>} > >>> > >>> The memory diff is 26520, which is a far cry from 1MB... > >>> > >>> - Jon > >>> > >>> ___ > >>> Monodroid mailing list > >>> Monodroid@lists.ximian.com > >>> > >>> UNSUBSCRIBE INFORMATION: > >>> http://lists.ximian.com/mailman/listinfo/monodroid > >> > >> > >> > >> -- > >> Extreme Knowledge is not something for which he programs a computer > >> but for which his computer is programming him. > >> > >> -Wozniak > > > > > > > > -- > > Extreme Knowledge is not something for which he programs a computer > > but for which his computer is programming him. > > > > -Wozniak > > > > -- > Extreme Knowledge is not something for which he programs a computer but > for which his computer is programming him. > > -Wozniak > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] problem deploying 4.2.2
static void Main(string[] args) { GC.Collect(); var start = GC.GetTotalMemory(false); Console.WriteLine("Start memory: {0}", start); System.Web.HttpUtility.ParseQueryString(" http://www.yahoo.com?q=1";); GC.Collect(); var end = GC.GetTotalMemory(false); Console.WriteLine("End memory: {0}; diff={1}", end, (end - start).ToString()); } Memory diff on a normal c# project was 100k here. Code I use in that same example was 2k. This is the stuff I was flaming about. We have people taking jobs from americans and crapping out stuff like that. I was fired for my last job for confronting a programmer about his memory leaks. I guess no one cares, oh well. Once you get to the market and you get like 40 1 star reviews you'll care. My apps have almost a 98 percent 5 star :P But I give a shit about my code. That's the difference. Tired of preaching to deaf ears... On Mon, Jun 11, 2012 at 4:13 PM, Sayed Arian Kooshesh wrote: > actually, jon, I'm gonna take back my words. You're not idiot and I > appreciate your previous help > > > On Mon, Jun 11, 2012 at 4:12 PM, Sayed Arian Kooshesh > wrote: > >> is the .net world just full of idiots? I'm going back to pure c. >> >> >> You should also never use httputility as the* static constructor causes* >> a whole meg of memory to vainsh >> >> On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh >> wrote: >> > btw >> > i said >> > STATIC CONSTRUCTOR ;) >> > >> > On Mon, Jun 11, 2012 at 4:10 PM, Sayed Arian Kooshesh >> > wrote: >> >> try parsing a query string >> >> >> >> On Mon, Jun 11, 2012 at 4:07 PM, Jonathan Pryor >> wrote: >> >>> On Jun 11, 2012, at 1:00 PM, Sayed Arian Kooshesh wrote: >> You should also never use httputility as the static constructor >> causes a whole meg of memory to vainsh. >> >>> >> >>> How pray-tell did you come to this conclusion? My (really stupid) >> test shows that it only uses 26k: >> >>> >> >>>protected override void OnCreate (Bundle bundle) >> >>>{ >> >>>base.OnCreate (bundle); >> >>>GC.Collect (); >> >>>var start = GC.GetTotalMemory (false); >> >>>Console.WriteLine ("Start memory: {0}", start); >> >>>Foo (); >> >>>GC.Collect (); >> >>>var end = GC.GetTotalMemory (false); >> >>>Console.WriteLine ("End memory: {0}; diff={1}", end, >> (end-start).ToString ()); >> >>>} >> >>> >> >>>static void Foo () >> >>>{ >> >>>var ignore = new System.Web.HttpUtility (); >> >>>} >> >>> >> >>> The memory diff is 26520, which is a far cry from 1MB... >> >>> >> >>> - Jon >> >>> >> >>> ___ >> >>> Monodroid mailing list >> >>> Monodroid@lists.ximian.com >> >>> >> >>> UNSUBSCRIBE INFORMATION: >> >>> http://lists.ximian.com/mailman/listinfo/monodroid >> >> >> >> >> >> >> >> -- >> >> Extreme Knowledge is not something for which he programs a computer >> >> but for which his computer is programming him. >> >> >> >> -Wozniak >> > >> > >> > >> > -- >> > Extreme Knowledge is not something for which he programs a computer >> > but for which his computer is programming him. >> > >> > -Wozniak >> >> >> >> -- >> Extreme Knowledge is not something for which he programs a computer but >> for which his computer is programming him. >> >> -Wozniak >> > > > > -- > Extreme Knowledge is not something for which he programs a computer but > for which his computer is programming him. > > -Wozniak > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Does anybody know a way to type and validate at the same time in a WebView
le sigh. The deign is horrible but I will help you. ok what you need to do is put call backs on your textboxes $(".input").keyup(function (e) { var resp = Android.SomeValidationCallBack($(e.target).val(),$(e.target).attr('name')); var jObj = JSON.parse(resp); //just turned a json object into a javascript object. Oh wait, does Javascript object not.. yeah. this is how you pass complex objects :P }); jon post the fucking thing where I proved you wrong. Stop ego trippin like the losers do. You ain't one. On Mon, Jun 11, 2012 at 7:09 PM, Terry151151 wrote: > I need to be able to type and validate at the same time in a WebView. The > typing accesses either a local Sqlite cache or and online database if > available. > > I can't use loadUrl as it always hides the soft keyboard on every key > stroke. > I also can't use a Javascript interface as it can't take callbacks to the > Javascript ( only takes primitive data types ). > > I'm now having to look at a really messy solution to solve the problem. > ie. Place a request through the Javascript interface and then setup a > polling timer in Javascript and check the result back through the > Javascript > interface. Unfortunately I'll have to set up timers for every input field > that needs to go back to the database, and also find some way to interlock > similar requests on diferent input fields (Yuck). > > Does anybody know of another way to do this? > > Thanks in advance. > Terry. > > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Does-anybody-know-a-way-to-type-and-validate-at-the-same-time-in-a-WebView-tp5710289.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 > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] debugger constantly detaches
The OutOfMemoryException can sometimes be predicted in advance with special code that uses the MemoryFailPoint class in the .NET Framework. http://msdn.microsoft.com/en-us/library/system.runtime.memoryfailpoint.aspx You may also want to look at lazy initialization to help some of that memory issue though you found your problem, this might be helpful in the future. if you get this email twice, it's because jon is not letting my emails through so I will be emailing directly then. I proved him wrong and he is now sulking or some shit. On Tue, Jun 12, 2012 at 10:33 AM, l0nestar wrote: > I think I may of found the cause, > > In my inner render loop I had: > > float[] m = new float[] > { > tm.M11, tm.M12, tm.M13, tm.M14, > tm.M21, tm.M22, tm.M23, tm.M24, > tm.M31, tm.M32, tm.M33, tm.M34, > tm.M41, tm.M42, tm.M43, tm.M44, > }; > GLES11.GlLoadMatrixf(m, 0); > > I now allocate m once and reuse it and the debugger stays connected. w00t! > > Of course allocating a new float[16] for every single draw is very poor, > but > the question is why do I not get an out of memory error or equivalent > though? > > (incidentally this probably explains why enabling tracing didn't reveal any > clues as the frequency of the allocations dropped accordingly) > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/debugger-constantly-detaches-tp5710262p5710304.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 > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Enterprise licensing question
I have searched and can't find an answer to this one. When I purchase the enterprise version of the software, does the software change in any way or is there additional software or somthing like that? Or is it just a licensing difference? Thanks in advance. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Enterprise-licensing-question-tp5710305.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] debugger constantly detaches
this is an idea but since I don't know your design, I don't know if it will fit. make a [Application] public class myGlApp: Application { public void onCreate() { //create a pool of float bytes here that you can reuse } ~myGlApp() { //MAKE SURE TO DESTROY POOL PROPERLY } } also the I ran opengl apps in the most minimal emulator with the debugger. I'd show you but I signed an NDA so we know it's your code. } On Wed, Jun 13, 2012 at 3:19 AM, l0nestar wrote: > Spoke too soon.. :( > > However i think i can create a very similar issue in the default android > opengl app. > > If you create a new monodroid opengl project and then put these lines in > GLView#.cs OnRenderFrame, underneath GL.DrawArrays(): > >for (int i = 0; i < 50; i++) >GC.Collect(0); > > For me it exits after a few seconds. However if I run the app without the > debugger it runs fine. > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/debugger-constantly-detaches-tp5710262p5710313.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 > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Dynamic Table View
Hi Mono, I am new to Mono for andriod development. I am using monodevelop 3.0.2 c# compatable tool to design Android App for my company. I have created WCF Service and registed to Monodevelop app, its working fine. This service will return a DataTable which i have show in *Table format Dynamically*. When user click on Button I ahve to bind this DataTable to Table View dynamically. Like 4 columns and 10 rows. Could you please let me know how I can design this dynamic Table View using monodevelop 3.0.2? Its very urgent for me. Please help me. Appreciate your help. Thanks in Advance Thanks Meera -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Dynamic-Table-View-tp5710323.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] Dynamic Binding for datatable to Table View
Hi Mono, I am new to Mono for andriod development. I am using monodevelop 3.0.2 c# compatable tool to design Android App for my company. I have created WCF Service and registed to Monodevelop app, its working fine. This service will return a DataTable which i have show in Table format Dynamically. When user click on Button I ahve to bind this DataTable to Table View dynamically. Like 4 columns and 10 rows. Could you please let me know how I can design this dynamic Table View using monodevelop 3.0.2? Its very urgent for me. Please help me. Appreciate your help. Thanks in Advance Thanks Meera -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Dynamic-Binding-for-datatable-to-Table-View-tp5710324.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] Does anybody know a way to type and validate at the same time in a WebView
Passing complex objects using Json isn't the problem. The problem is I need to be able to run the callbacks into the Javascript asynchronously. The Javascript calls the routine in the interface. C# then sets up a thread to talk to the server on the internet or a local Sqlite database. When the result is found it then needs to invoke the success/fail callback in the Javascript. Thanks anyway. Terry. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Does-anybody-know-a-way-to-type-and-validate-at-the-same-time-in-a-WebView-tp5710289p5710335.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] Dynamic Binding for datatable to Table View
In short, I'd go with ListView. You would have to create a custom adapter and create each row there (either inflate an layout or create it dynamically). See demos and samples on ListView, it shouldn't be hard. Miha -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Meera Sent: Thursday, June 14, 2012 12:12 AM To: monodroid@lists.ximian.com Subject: [mono-android] Dynamic Binding for datatable to Table View Hi Mono, I am new to Mono for andriod development. I am using monodevelop 3.0.2 c# compatable tool to design Android App for my company. I have created WCF Service and registed to Monodevelop app, its working fine. This service will return a DataTable which i have show in Table format Dynamically. When user click on Button I ahve to bind this DataTable to Table View dynamically. Like 4 columns and 10 rows. Could you please let me know how I can design this dynamic Table View using monodevelop 3.0.2? Its very urgent for me. Please help me. Appreciate your help. Thanks in Advance Thanks Meera -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Dynamic-Binding-for-datatable-to-Table-View-tp5710324.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