The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
AIDL (Android Interface Definition Language)<br />
public void onServiceDisconnected(ComponentName className) {<br />
// This is called when the connection with the service has been<br />
// unexpectedly disconnected -- that is, its process crashed.<br />
mService = null;<br />
mKillButton.setEnabled(false);<br />
mCallbackText.setText("Disconnected.");<br />
Calling an IPC Method : Example<br />
}<br />
};<br />
// As part of the sample, tell the user what happened.<br />
Toast.makeText(RemoteServiceBinding.this, R.string.remote_service_disconnected,<br />
Toast.LENGTH_SHORT).show();<br />
/**<br />
* Class for interacting with the secondary interface of the service.<br />
*/<br />
private ServiceConnection mSecondaryConnection = new ServiceConnection() {<br />
public void onServiceConnected(ComponentName className,<br />
IBinder service) ){<br />
// Connecting to a secondary interface is the same as any<br />
// other interface.<br />
mSecondaryService = ISecondary.Stub.asInterface(service);<br />
mKillButton.setEnabled(true);<br />
}<br />
public void onServiceDisconnected(ComponentName className) {<br />
mSecondaryService = null;<br />
mKillButton.setEnabled(false);<br />
}<br />
};<br />
<strong>Korea</strong> Android Community- www.kandroid.org<br />
18