Then I have this app in Xamarin.Droid, which basically loads an image that loads from the resource Which is only 168KB, before loading the image, the consumption of RAM of the app is 29.81 MB (already very high, since this time I am loading an image from XML which is 54KB). When showing a 168kb file, it goes up to 60 to 80 MB!
I now call and go to the next page:
var modalPage = new SomeContentPage (); Wait for the navigation. Push asyn (modal page); After that, I load a list of items from the json file with these lines: stream stream = assembly. GETManifestResourceStream (Constants.APP_NAMESPACE + "someJson.json"); Streamer rewrite = new streamrider (stream); String content = re Reed to End (); This._animals = JsonConvert.DeserializeObject & lt; List & lt; MyObject & gt; & Gt; (material); Re.Dispose (); // adding it consumed up to 20 MB or maybe I am so desperate at this point that I thought that improvement has improved. Stream.Dispose ();
deserialized using:
this._ someList = JsonConvert.DeserializeObject & lt; List & lt; MyObjects & gt; & Gt; (SomeJsonSource)
"Based on the current status of the page". I keep it in the current object (IMG background is an image of course):
imgBackground.Source = ImageSource.FromResource (Constants.APP_NAMESPACE + ".reisara." + SomeObject.ImageFileName );
Some items have 10 items with only four string fields in the list.
Can anyone help with this? Is this a known issue of some kind?
No comments:
Post a Comment