This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Issue Dynamically Changing TextView  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I'm new here, and from what I can tell so far this website is an amazing resource.

Anyway, I've been reading up on Java and Android development for a little while now, and today decided to attempt to create a very simple calculator in order to try to get a hang of it. Well, for the most part everything had been going well, up until I realized that what I thought would work in altering the TextView ends up force closing the application before it ever displays anything on the screen!

Here is what I have so far:
(MainActivity.java)


(activity_main.xml)


I've been ripping my hair out trying to figure out why this is occurring. I've scoured through web pages and tutorials with very little luck, I'm hoping you guys can help me spot the issue!

Thanks in advance!
 
Justin Wiley
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! Figured it out! Hopefully it helps someone else though:

http://stackoverflow.com/questions/5495169/findviewbyid-null-pointer-exception

Now on to the next problem!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!