T tman Member Licensed User Longtime User Jan 7, 2017 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2017 #2 Are you showing any modal dialog or calling DoEvents in the menu click sub? Upvote 0
T tman Member Licensed User Longtime User Jan 8, 2017 #3 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: Jan 8, 2017 Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2017 #4 Can you try to reproduce it in a small project and upload it? Upvote 0
T tman Member Licensed User Longtime User Jan 10, 2017 #5 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
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.