Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

Tripped Over a Tiny Wall, 37/100 Days of Code

  • July 22, 2019July 29, 2019
  • by Richard Clarke

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

Related

Way to Go Android Studio, 36/100 Days of Code
Jumped the Wall After All, 38/100 Days of Code
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
100daysofcode Android Android Studio Java

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress