Sounds like your variable 'binding' is undeclared. Simply declare it on your class like binding = this or simply use this.
On Sun, Oct 24, 2010 at 6:32 AM, Beowulf <[email protected]> wrote: > Greetings > I am creating a service client and the following lines give me > error. I was wondering how to fix these... > // I have put in the service client stuff below... > private CheckZone mBoundService; > private ServiceConnection mConnection = new > ServiceConnection() { > public void onServiceConnected(ComponentName CheckZone, > IBinder > service) { > // This is called when the connection with the service > has > been > // established, giving us the service object we can > use to > // interact with the service. Because we have bound > to a > explicit > // service that we know is running in our own process, > we > can > // cast its IBinder to a concrete class and directly > access > it. > mBoundService = > ((CheckZone.LocalBinder)service).getService(); > > //This line complians about binding, and states that > it can > not be resolved. How do I fix this please? > Toast.makeText(binding.this, "Connected to CheckZone", > Toast.LENGTH_SHORT).show(); > } > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

