Hi,
I am brand new to Basic4Android and android.
I am trying to read in a fairly large database file (a table of 27 columns and 2000 rows).
I tried with the (slightly modified) "SqlDemo" program from the tutorial and also with the SQLiteDB program from Klaus CHRSITL.
Both however terminate with a java.lang.OutOfMemoryError somewhere between reading the 1000th and 2000th row.
I know it is a whole lot of data, but it is only text, so expressed in bytes, with todays memory chips this should be barely worth mentioning. So I guess it must be the graphical representation (Scrollview?) eating that memory.
If I look at the RAM usage on my android tablet I indeed see a whole bunch of used memory, but nevertheless there also remains a lot of memory unused.
So my question:
- Is there a way I could increase the amount of memory an application gets?
- Is there perhaps a more memory efficient way of showing a (scrollable) table of text?
I am brand new to Basic4Android and android.
I am trying to read in a fairly large database file (a table of 27 columns and 2000 rows).
I tried with the (slightly modified) "SqlDemo" program from the tutorial and also with the SQLiteDB program from Klaus CHRSITL.
Both however terminate with a java.lang.OutOfMemoryError somewhere between reading the 1000th and 2000th row.
I know it is a whole lot of data, but it is only text, so expressed in bytes, with todays memory chips this should be barely worth mentioning. So I guess it must be the graphical representation (Scrollview?) eating that memory.
If I look at the RAM usage on my android tablet I indeed see a whole bunch of used memory, but nevertheless there also remains a lot of memory unused.
So my question:
- Is there a way I could increase the amount of memory an application gets?
- Is there perhaps a more memory efficient way of showing a (scrollable) table of text?