Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 07-20-2010, 11:02 AM   #1
New Member
 
Join Date: Jul 2010
Posts: 5
Friends: 0
View calmchess's Profile   View calmchess's Photo Album   View calmchess's Blog   View Social Groups
I'm trying to use a text field that resides in a method that is being called from an external class everything gets called fine and data arrives but the text field is nullpointer exception....somehow its supposed to be global to all the functions but somehow it loses scope.....How do i use a text field when the function has been called from external class?
calmchess is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 07-22-2010, 09:29 PM   #2
New Member
 
Join Date: May 2009
Posts: 8
Friends: 0
View James McMurray's Profile   View James McMurray's Photo Album   View James McMurray's Blog   View Social Groups
Can you post the relevant bits of code?

There are several things that could be happening:

1) Scope issues (maybe the variable isn't really globally available)
2) Threading problems: updates have to run on the UI thread, so if you're trying to change things from other threads you'll have problems.
3) A simple typo in findViewById().
James McMurray is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 07-23-2010, 06:28 AM   #3
New Member
 
Join Date: Jul 2010
Posts: 5
Friends: 0
View calmchess's Profile   View calmchess's Photo Album   View calmchess's Blog   View Social Groups
I solved this with a simple return statement witch returns the needed data from the SAX class instead of trying to pass it around through class refrece variables not qutie sure what to call it.
calmchess is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
NullPointerException for Very Basic Code baran_khan Android Development, Answers, Tutorials, and Code Snippets 6 11-25-2011 10:11 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.