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..
|