Android Question BALayout cannot be cast to java.lang.string

Duncan H Williamson

Member
Licensed User
Longtime User
Hi All
I am developing an app with the main page having a tabhost calling three designer files, on one of the designer files ( named two) is a panel (named panel2) .
within the app I have inserted a table (named table2), all works as I expected except if i select a row via the screen.
it immediately posts the error in my question heading..

the code i used is as follows;
table2.Initialize(Panel2, "Table2", 4, Gravity.CENTER_HORIZONTAL, True)
table2.AddToActivity(Panel2, 0, 0, Panel2.Width, Panel2.Height)

I cannot work out what i have to do to rectify this problem, any assistance would be hugely appreciated !!
Regards
Duncan
 

Duncan H Williamson

Member
Licensed User
Longtime User
You should post the full error message from the logs.

The first parameter should be Me not Panel2. It sets the callback module.
Thanks Erel
that solved the problem !!
Just want to take the opportunity to say what a great product this is !!! I have been developing with VB for more years than I care to remember and was dreading the move to developing android apps, but your product has made this easy and interesting !!

regards

Duncan
 
Upvote 0
Top