ãµã¼ãã¹ã¨ã®ãã¤ã³ãå¦çã®æ³¨æç¹ Android ã§ã¢ã¯ãã£ããã£ããµã¼ãã¹ã¨éä¿¡ãããã¨ãã«ã¯ãµã¼ãã¹å´ã§å®ç¾©ããRPCå®ç¾©(aidl)ãä»ãã¦ã¢ã¯ãã£ããã£ããµã¼ãã¹ã®ã¡ã½ãããå¼ã³åºãã¨ããå½¢ãã¨ãã¾ã. ãã®éä¿¡ã®åæåãè¡ãã®ã Context#bindService() ãªããã§ãã, ãã®é¢æ°ãåºã¦ãã¦ãåæåã¯å®äºãã¦ããã, OSå´ã§éä¿¡ã®æºåãæ´ã£ãã¨ãã« bindService() ã«ä¸ãã ServiceConnection#onServiceConnected() ã«ã³ã¼ã«ããã¯ããã¦ããã¨ãããã¨ã«ãªã£ã¦ãã¾ã. ä¸æ¹ã§ã¢ã¯ãã£ããã£èµ·åã¨åæã«ãµã¼ãã¹ã®ç¶æ ãèªã¿ã¨ã£ã¦åæã®è¡¨ç¤ºã«åæ ããããã¨ãããã¨ã¯ããããã¨æãã®ã§ãã, ããã§ã¤ããã£ã¦ãã¾ããããªãã®ã, ServiceConnection conn = new ServiceConection
{{#tags}}- {{label}}
{{/tags}}