hello,
my english is not good ... :-(
the example does not work with two different tables.
for one table you use too much code.
but for two different tables i use the same solution-way like you.
all functions exists two times like your code: i.e. getview1 and getview2
by using different tables you have to use different variables inside the functions too:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim StringUtils1 As StringUtils
Dim StringUtils2 As StringUtils
End Sub
....
Type RowCol (Row As Int, Col As Int)
Type RowCol2 (Row2 As Int, Col2 As Int)
....
Sub Cell_Click
Dim rc As RowCol
Dim l As Label
l = Sender
rc = l.Tag
SelectRow(rc.Row)
activity.Title = "Cell clicked: (" & rc.Row & ", " & rc.Col & ")"
End Sub
Sub Cell_Click2
Dim rc1 As RowCol2
Dim l1 As Label
l1 = Sender
rc1 = l1.Tag
SelectRow2(rc1.Row2)
activity.Title = "Cell clicked: (" & rc1.Row2 & ", " & rc1.Col2 & ")"
End Sub
for a useable example install oki.apk and copy the two *.csv files to the root of your sd-card. the app is my suggar-program for saving blood-sugar-thing and the insuling for giving it to my body. the results could save in table-one. the second table is a list of meals with many infos - only for read (at first).
i think, you know now what i mean about my "not good english".
(its for device with 480*800 display)
the solution is not very usable for more than 2 different tables. its too much ... ähm .. too easy for many many faults ...