• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!