問候語 我正在創建一個服務客戶端,並且以下行給我 錯誤。我想知道如何解決這些...Android服務客戶端代碼
// 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();
}
你一定要重新格式化你的問題。單行復制和粘貼並不是非常有用。 – 2010-10-25 06:52:54