• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue Dynamically Changing TextView

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic