Android Question Listview - highlight the last item pressed

select

Member
Licensed User
Longtime User
Hello, I've an activity with a listview.
When I press an item of listview my app start another activity.
With "back" button it come back in the first activity with listview.
It's possible, in this moment, highlight the last item pressed of the listview?
 

select

Member
Licensed User
Longtime User
Thankyou Erel!

When I try it say:

B4X:
Parsing code.                           0.02
Compiling code.                         Error
Error compiling program.
Error description: 'as' expected.
Occurred on line: 101
   jo.RunMethod("setChoiceMode", Array(1))
Word: (

I probably did not understand how to use your code...
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
If you are using an older version of B4a, you will need to write
B4X:
jo.RunMethod("setChoiceMode", Array As Object(1))
 
Upvote 0
Top