"내 보낸"목적은 다른 앱이 서비스에 액세스 할 수있게하는 것입니다.
예를 들어, 샘플 \ \ 안드로이드-SDK-창은 이러한 서비스와 일치하는 소스 코드는 다음 샘플
에서 폴더에서 찾을 수 있습니다 안드로이드-8 \ SampleSyncAdapter \ AndroidManifest.xml을
<service
android:name=".authenticator.AuthenticationService"
android:exported="true">
<intent-filter>
<action
android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
<service
android:name=".syncadapter.SyncService"
android:exported="true">
<intent-filter>
<action
android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
<meta-data
android:name="android.provider.CONTACTS_STRUCTURE"
android:resource="@xml/contacts" />
</service>
\ 안드로이드 SDK-WINDOWS \
\ 샘플 \ 안드로이드-8 \ SampleSyncAdapter \ SRC \ COM 안드로이드 \ samplesync \ 인증 \ AuthenticationService.java
및
\ 예 \ 샘플 \ 안드로이드-SDK-WINDOWS \
이 예를 들어 \ 안드로이드 \ 안드로이드-8 \ SampleSyncAdapter \ SRC \ co.kr에서 \ \ samplesync \ syncadapter \ SyncService.java
에 위치 할 수있는이 사용하는 예 .. .
\android-sdk-windows\samples\android-8\SampleSyncAdapter\src\com\example\android\samplesync\client\NetworkUtilities.java (3 hits)
Line 63: "https://samplesyncadapter.appspot.com";
Line 238: // Succesfully connected to the samplesyncadapter server and
Line 287: // Succesfully connected to the samplesyncadapter server and