GeeCON Prague 2014*
The moose likes Android and the fly likes Issue Dynamically Changing TextView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "Issue Dynamically Changing TextView" Watch "Issue Dynamically Changing TextView" New topic
Author

Issue Dynamically Changing TextView

Justin Wiley
Greenhorn

Joined: Jan 03, 2013
Posts: 2
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

Joined: Jan 03, 2013
Posts: 2
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!
 
GeeCON Prague 2014
 
subject: Issue Dynamically Changing TextView