Android Question Display a screen

peggjones

Active Member
Licensed User
Longtime User
Can anyone help me please?

I have a fairly simple requirement, something I do all the time in other languages.

I display a list of records from a database in a webview (this bit I can do OK).

I then want to be able to to tap on a row and present another screen with details of the row I tapped. I can't work out how to display the second screen.

I'm sure there's a simple answer but I Just can't find it, is there a simple show screen function somewhere?

Many Thanks.
 

peggjones

Active Member
Licensed User
Longtime User
Thanks for that it has improved my understanding of activities. The problem I'm having now is finding a way to display my data on the second form.

The following code

Dim edittext1 As EditText

edittext1.text = Main.dcode

Activity.LoadLayout("Detail")

Produces an error saying editext1 must be initialized.

Doesn't "edittext1.text = Main.dcode" initialize it?
 
Upvote 0

peggjones

Active Member
Licensed User
Longtime User
Thanks but I am successfully passing the variable between modules in variable Main.dcode, the problem
occurs when it executes
"edittext1.text = Main.dcode"
it says edittext1 needs to be initialized. I can't work out how to do it.

Thanks.
 
Upvote 0
Top