I'm using an application with many activities inside. also listview with images and so on. Here is an image from apk.
Here is an image
First question what kind of memory is this with red circle? Is it Ram? Or heap memory? Second question what is the normal size for each apk.Is it safe bigger than a number of memory? Third question my application if this memory is above 380mb. In some cases it crashes my apk.with error message apk doesnt respond. Is something which i can do for this? Most common activity uses a listview with items inside:Here is part of my code: I'm using very much sqlite in my apk.
var table = db.Query<InventoryPreviewClass>(
"select * from InventoryPreviewClass where CategoryID =" +
Connection.CategoryID + " and InventoryItemName like '%" +
etSearchAlwaysOn.Text.ToUpper() + "%'");
mItems = new List<InventoryPreviewClass>();
foreach(var item in table)
{
mItems.Add(new InventoryPreviewClass() {
InventoryItemID = item.InventoryItemID,
InventoryItemName = item.InventoryItemName,
InventoryItemPrice = item.InventoryItemPrice
});
}
MyListViewAdapterInventory adapter = new MyListViewAdapterInventory(this, Resource.Layout.InventoryPreview, mItems);
mlistview.Adapter = adapter;
I tag also java cause its similar