p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Android 4 Application Development (http://p2p.wrox.com/forumdisplay.php?f=674)
-   -   Page 385 LocationTracker (http://p2p.wrox.com/showthread.php?t=88164)

Archdeacon August 6th, 2012 03:20 AM

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.

All times are GMT -4. The time now is 10:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.