My application crashes after the following message in the log file:
[dalvikvm-heap] Forcing collection of SoftReferences for 4320012-byte allocation [dalvikvm-heap] Out of memory on a 4320012-byte allocation.
App does not crash when I use color instead of images for pages background. Looks like the memory allocated for the background image is not freed when the next page is opened. I set the page background as following:
<resources>
<style name="Theme.AppPage" parent="android:Theme">
<item name="android:windowBackground">@drawable/splash_final</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
and then in View.cs file:
[Activity (Theme = "@style/Theme.AppPage", NoHistory = false)]
public class MainMenuView : MvxActivity
As you may spotted I also use MvvmCross, maybe the issue is related to this framework.
Can someone help me with this?