Android Question Selecting a menu item can cause crash

tman

Member
Licensed User
Longtime User
When selecting a menu item if I quickly tap it everything is okay. If my finger lingers on the item and then release it will cause the app to crash.
 
No, Here is the menu click sub:

Code: Copy
Sub GroupG_Click
File.WriteString (File.DirInternal,"group.txt","g")
Table2.LoadTableFromCSV(File.DirAssets, "groupg.csv", True) 
Activity.Title = "Selected Group G"
End Sub

I tried my app in an older phone that has a separate menu button (Android version 4.1.1) and the problem does not occur.
 
Last edited:
Upvote 0
Hi Erel,
I tried to simplify my app to reproduce the problem and in the process I figured it out. It occurs with this line of code:
Table2.LoadTableFromCSV(File.DirAssets, "groupg.csv", True)
This opens a database table. And the table rows are indeed clickable!
I moved this line of code to a new sub and I call for this sub using CallSubDelayed.
Problem solved!
Erel, thank you for your support! (You pointed me in the right direction.) I know when I post a question I get good responses and that encourages me to keep trying and not give up.
 
Upvote 0
Back
Top