Tripped Over a Tiny Wall, 37/100 Days of Code
I added new features to my Salesman’s Travel app this week. I was on a roll until I hit a short wall.
I set up the classes and styled most of the application thus far. However, I ran into an issue when configuring the onClick() method.
The purpose of this method is to start new Activities when a user presses “View List” or “Search List”. But I got a compiler error while writing the method.
The error statement says “Expression Expected”. I’m trying to cast a View object as a TextView and obtain a string from the text to determine which Activity to start when a user clicks an option.
I’ll have to do some research to figure out what’s causing this error. As soon as I fix it, I can make the TextViews clickable.
-CF