View Single Post
  #1 (permalink)  
Old August 6th, 2012, 03:20 AM
Archdeacon Archdeacon is offline
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: Bangkok, , Thailand.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 385 LocationTracker

I am new to this so please excuse lack of knowledge! I am getting an error in the line 'private class MyLocationListener implements LocationListener{' and it says 'Illegal modifier for the class'. It needs to get access to the variables 'senderTel' and ''lm' from SmsReceiver class. I think I have found the solution: the code in the book wraps over 2 pages and I mistakenly started a new class! Containing the above class within the main one fixed it.

Last edited by Archdeacon; August 7th, 2012 at 04:23 AM..
Reply With Quote