This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue Dynamically Changing TextView

 
Justin Wiley
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic